1
0
Fork 0
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:
Robert Machmer 2016-06-07 13:34:44 +02:00
parent f1698c975c
commit 5e1b03add4

View file

@ -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'
}
{