Skip to content

Commit d0b137e

Browse files
committed
Highlight getters/setters and the new keyword
1 parent c5a50a5 commit d0b137e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntaxes/lpp.tmLanguage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,14 +270,14 @@
270270
<!-- Control keywords -->
271271
<dict>
272272
<key>match</key>
273-
<string>\b(class|constructor|extends|new|not|and|or|break|do|else|for|if|elseif|return|then|repeat|while|until|end|function|local|in|continue|goto)\b</string>
273+
<string>\b(class|constructor|extends|not|and|or|break|do|else|for|if|elseif|return|then|repeat|while|until|end|function|local|in|continue|goto)\b</string>
274274
<key>name</key>
275275
<string>keyword.control.lua</string>
276276
</dict>
277277
<!-- Important constants -->
278278
<dict>
279279
<key>match</key>
280-
<string>(?&lt;![^.]\.|:)\b(NULL|false|nil|true|_G|_R|_VERSION|self|math\.(pi|huge))\b|(?&lt;![.])\.{3}(?!\.)</string>
280+
<string>(?&lt;![^.]\.|:)\b(NULL|false|nil|true|_G|_R|_VERSION|self|get|set|new|math\.(pi|huge))\b|(?&lt;![.])\.{3}(?!\.)</string>
281281
<key>name</key>
282282
<string>constant.language.lua</string>
283283
</dict>

0 commit comments

Comments
 (0)