summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornatashawatkins <tashawatkins@gmail.com>2017-07-27 09:40:57 +0000
committernatashawatkins <tashawatkins@gmail.com>2017-07-27 09:40:57 +0000
commit64047332da7a0a5d574824b070caa90b39518047 (patch)
tree4dab0aae0640706e3e159df43496529e9ce08229
parent0db8e281af377923115b894703b2b8beb8f1e9d5 (diff)
downloadpygments-64047332da7a0a5d574824b070caa90b39518047.tar.gz
Add julia 0.6 language features to julia.py
-rw-r--r--pygments/lexers/julia.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pygments/lexers/julia.py b/pygments/lexers/julia.py
index 67453aba..ab6d76a8 100644
--- a/pygments/lexers/julia.py
+++ b/pygments/lexers/julia.py
@@ -48,6 +48,7 @@ class JuliaLexer(RegexLexer):
# keywords
(r'in\b', Keyword.Pseudo),
+ (r'isa\b', Keyword.Pseudo),
(r'(true|false)\b', Keyword.Constant),
(r'(local|global|const)\b', Keyword.Declaration),
(words([
@@ -55,7 +56,8 @@ class JuliaLexer(RegexLexer):
'baremodule', 'begin', 'bitstype', 'break', 'catch', 'ccall',
'continue', 'do', 'else', 'elseif', 'end', 'export', 'finally',
'for', 'if', 'import', 'importall', 'let', 'macro', 'module',
- 'quote', 'return', 'try', 'using', 'while'],
+ 'mutable', 'primitive', 'quote', 'return', 'struct', 'try',
+ 'using', 'while'],
suffix=r'\b'), Keyword),
# NOTE