From 58e11c0b2de8c288e588fd7114e19e209349582d Mon Sep 17 00:00:00 2001 From: Koki Fushimi Date: Tue, 9 Apr 2019 06:39:46 +0900 Subject: [PATCH 1/2] Update Julia keywords --- runtime/syntax/julia.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/syntax/julia.yaml b/runtime/syntax/julia.yaml index c92a0ddf..3c7c20fd 100644 --- a/runtime/syntax/julia.yaml +++ b/runtime/syntax/julia.yaml @@ -13,7 +13,8 @@ rules: # definitions - identifier: "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]" # keywords - - statement: "\\b(begin|break|catch|continue|function|elseif|struct|else|end|finally|for|global|local|const|if|include|import|using|require|macro|println|return|try|type|while|module)\\b" + - statement: "\\b(baremodule|begin|break|catch|const|continue|do|else|elseif|end|export|finally|for|function|global|if|import|let|local|macro|module|quote|return|struct|try|using|while)\\b" + - statement: "\\b(abstract type|primitive type|mutable struct\\b)" # decorators - identifier.macro: "@[A-Za-z0-9_]+" # operators From 87661ef308938c078229cfdba6deaa917b2bb4f7 Mon Sep 17 00:00:00 2001 From: Koki Fushimi Date: Tue, 9 Apr 2019 06:57:58 +0900 Subject: [PATCH 2/2] Update keywords for infix operators --- runtime/syntax/julia.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/syntax/julia.yaml b/runtime/syntax/julia.yaml index 3c7c20fd..166c895c 100644 --- a/runtime/syntax/julia.yaml +++ b/runtime/syntax/julia.yaml @@ -18,7 +18,7 @@ rules: # decorators - identifier.macro: "@[A-Za-z0-9_]+" # operators - - symbol.operator: "[-+*/|=%<>&~^]|\\b(and|not|or|is|in)\\b" + - symbol.operator: "[-+*/|=%<>&~^]|\\b(in|isa|where)\\b" # parentheses - symbol.brackets: "([(){}]|\\[|\\])" # numbers