mirror of
https://github.com/Reuh/language-candran.git
synced 2025-10-27 12:19:30 +00:00
Add syntax highlighting for constants
Following the style of lua's default constants we highlight variables which are written in ALL_CAPS connected by underscores.
This commit is contained in:
parent
f1698c975c
commit
5e1b03add4
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@
|
|||
'name': 'keyword.control.lua'
|
||||
}
|
||||
{
|
||||
'match': '(?<![^.]\\.|:)\\b(false|nil|true|_G|_VERSION|math\\.(pi|huge))\\b|(?<![.])\\.{3}(?!\\.)'
|
||||
'match': '(?<![^.]\\.|:)\\b([A-Z_]+|false|nil|true|math\\.(pi|huge))\\b|(?<![.])\\.{3}(?!\\.)'
|
||||
'name': 'constant.language.lua'
|
||||
}
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue