Skip to content

Commit

Permalink
Julia: Add the ’in’ keyword (#1918)
Browse files Browse the repository at this point in the history
Added the missing `in` keyword.
  • Loading branch information
dvdhansen authored and RunDevelopment committed May 28, 2019
1 parent 5ad58a7 commit feb3187
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions components/prism-julia.js
Expand Up @@ -4,9 +4,9 @@ Prism.languages.julia= {
lookbehind: true
},
'string': /("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2/,
'keyword' : /\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|let|local|macro|module|print|println|quote|return|try|type|typealias|using|while)\b/,
'keyword' : /\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|try|type|typealias|using|while)\b/,
'boolean' : /\b(?:true|false)\b/,
'number' : /(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+\.?\d*|\.\d+)(?:[efp][+-]?\d+)?j?/i,
'operator': /[-+*^%÷&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥]/,
'punctuation' : /[{}[\];(),.:]/
};
};
2 changes: 1 addition & 1 deletion components/prism-julia.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/languages/julia/keyword_feature.test
Expand Up @@ -4,7 +4,7 @@ ccall const continue
do else elseif end
export finally for
function global if
immutable import importall
immutable import importall in
let local macro module
print println quote
return try type
Expand All @@ -19,7 +19,7 @@ typealias using while
["keyword", "do"], ["keyword", "else"], ["keyword", "elseif"], ["keyword", "end"],
["keyword", "export"], ["keyword", "finally"], ["keyword", "for"],
["keyword", "function"], ["keyword", "global"], ["keyword", "if"],
["keyword", "immutable"], ["keyword", "import"], ["keyword", "importall"],
["keyword", "immutable"], ["keyword", "import"], ["keyword", "importall"], ["keyword", "in"],
["keyword", "let"], ["keyword", "local"], ["keyword", "macro"], ["keyword", "module"],
["keyword", "print"], ["keyword", "println"], ["keyword", "quote"],
["keyword", "return"], ["keyword", "try"], ["keyword", "type"],
Expand Down

0 comments on commit feb3187

Please sign in to comment.