From e0a7cdfbd71f47c696ee95be88f59607a10a145c Mon Sep 17 00:00:00 2001 From: "Daniel J. Ramirez" Date: Thu, 31 Aug 2017 21:36:48 -0500 Subject: [PATCH] Updated gdscript pygments --- extensions/gdscript.py | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/extensions/gdscript.py b/extensions/gdscript.py index 179aa38a0..45c9685fa 100644 --- a/extensions/gdscript.py +++ b/extensions/gdscript.py @@ -61,7 +61,7 @@ class GDScriptLexer(RegexLexer): (r'\\\n', Text), (r'\\', Text), (r'(in|and|or|not)\b', Operator.Word), - (r'!=|==|<<|>>|&&|\+=|-=|\*=|/=|%=|&=|\|=|\|\||[-~+/*%=<>&^.!|]', Operator), + (r'!=|==|<<|>>|&&|\+=|-=|\*=|/=|%=|&=|\|=|\|\||[-~+/*%=<>&^.!|$]', Operator), include('keywords'), (r'(func)((?:\s|\\\s)+)', bygroups(Keyword, Text), 'funcname'), (r'(class)((?:\s|\\\s)+)', bygroups(Keyword, Text), 'classname'), @@ -90,13 +90,13 @@ class GDScriptLexer(RegexLexer): 'do', 'var', 'const', 'extends', 'is', 'export', 'onready', 'tool', 'static', 'setget', 'signal', 'breakpoint', 'switch', 'case', 'assert', 'break', 'continue', 'elif', 'else', 'for', 'if', - 'pass', 'return', 'while', 'match'), suffix=r'\b'), + 'pass', 'return', 'while', 'match', 'master', 'sync', 'slave', 'rpc', 'enum'), suffix=r'\b'), Keyword), ], 'builtins': [ (words(( - 'Color8', 'abs', 'acos', 'asin', 'assert', 'atan', 'atan2', - 'bytes2var', 'ceil', 'clamp', 'convert', 'cos', 'cosh', + 'Color8', 'ColorN', 'abs', 'acos', 'asin', 'assert', 'atan', 'atan2', + 'bytes2var', 'ceil', 'char', 'clamp', 'convert', 'cos', 'cosh', 'db2linear', 'decimals', 'dectime', 'deg2rad', 'dict2inst', 'ease', 'exp', 'floor', 'fmod', 'fposmod', 'funcref', 'hash', 'inst2dict', 'instance_from_id', 'is_inf', 'is_nan', 'lerp', @@ -109,14 +109,16 @@ class GDScriptLexer(RegexLexer): 'weakref', 'yield'), prefix=r'(?