将自定义/用户定义的函数高亮显示添加到默认值PHP.plist文件电子文本编辑器
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了将自定义/用户定义的函数高亮显示添加到默认值PHP.plist文件电子文本编辑器相关的知识,希望对你有一定的参考价值。
This will highlight all functions not previously defined in php for the e text editor. They are assigned to the "entities" in the theme editor. By default, they are highlighted only when originally defined, but not when they are in use in your code; this fixes that. This also fixes the current setup to highlight numeric constants as such when used inside a custom function call or definition.
<!-- added after the definition for "language_constant" near the bottom --> <key>numeric_constant</key> <dict> <key>match</key> <string>([0-9]+)</string> <key>name</key> <string>constant.language.php</string> </dict> <!-- added as the last definition in the main "patterns" array --> <dict> <key>begin</key> <string>([0-9a-zA-Z_-]+)s*(</string> <key>beginCaptures</key> <dict> <key>1</key> <dict> <key>name</key> <string>entity.name.function.php</string> </dict> <key>2</key> <dict> <key>name</key> <string>punctuation.definition.parameters.begin.php</string> </dict> </dict> <key>end</key> <string>)</string> <key>endCaptures</key> <dict> <key>1</key> <dict> <key>name</key> <string>punctuation.definition.parameters.end.php</string> </dict> </dict> <key>name</key> <string>meta.function.php</string> <key>patterns</key> <array> <dict> <key>include</key> <string>#string-double-quoted</string> </dict> <dict> <key>include</key> <string>#numeric_constant</string> </dict> <dict> <key>include</key> <string>#string-single-quoted</string> </dict> <dict> <key>include</key> <string>#string-backtick</string> </dict> <dict> <key>include</key> <string>#var_global</string> </dict> <dict> <key>include</key> <string>#var_global_safer</string> </dict> <dict> <key>include</key> <string>#var_basic</string> </dict> <dict> <key>include</key> <string>#language_constant</string> </dict> </array> </dict> <!-- added in the "patterns" array for the original function definition (near line 450 in the default PHP.plist --> <dict> <key>include</key> <string>#numeric_constant</string> </dict>
以上是关于将自定义/用户定义的函数高亮显示添加到默认值PHP.plist文件电子文本编辑器的主要内容,如果未能解决你的问题,请参考以下文章
在 clickhouse 中创建表时如何将自定义默认值添加到 Nullable 类型?
php 将自定义链接添加到使用wp_nav_menu()函数的菜单的末尾