diff options
author | Tim Hatch <tim@timhatch.com> | 2014-10-04 08:22:44 -0700 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2014-10-04 08:22:44 -0700 |
commit | 9bfaf9454e6301a6b5da0c30f4ca029c1f227a97 (patch) | |
tree | 259a649d763022a5d0b1efc9e2991369a930dd38 /pygments/lexers/matlab.py | |
parent | 2c541df8dca1882e0f52cf09a1f01c6f763bf86b (diff) | |
download | pygments-9bfaf9454e6301a6b5da0c30f4ca029c1f227a97.tar.gz |
Make scilab builtins file generatable, update
Diffstat (limited to 'pygments/lexers/matlab.py')
-rw-r--r-- | pygments/lexers/matlab.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/pygments/lexers/matlab.py b/pygments/lexers/matlab.py index 20683fb5..b94350cf 100644 --- a/pygments/lexers/matlab.py +++ b/pygments/lexers/matlab.py @@ -616,13 +616,11 @@ class ScilabLexer(RegexLexer): 'until', 'unwind_protect', 'unwind_protect_cleanup', 'while'), suffix=r'\b'), Keyword), - ("(" + "|".join(_scilab_builtins.functions_kw + - _scilab_builtins.commands_kw + - _scilab_builtins.macros_kw - ) + r')\b', Name.Builtin), + (words(_scilab_builtins.functions_kw + + _scilab_builtins.commands_kw + + _scilab_builtins.macros_kw, suffix=r'\b'), Name.Builtin), - (r'(%s)\b' % "|".join(map(re.escape, _scilab_builtins.builtin_consts)), - Name.Constant), + (words(_scilab_builtins.variables_kw, suffix=r'\b'), Name.Constant), # operators: (r'-|==|~=|<|>|<=|>=|&&|&|~|\|\|?', Operator), |