From aa46bde39c02c1004731a8b05479c457ac5bb762 Mon Sep 17 00:00:00 2001 From: Qi Zhang Date: Sun, 1 Sep 2019 18:00:57 -0400 Subject: [PATCH 1/3] Add more syntaxes to language Julia --- src/languages.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/languages.ts b/src/languages.ts index db539ad..edab046 100644 --- a/src/languages.ts +++ b/src/languages.ts @@ -130,24 +130,29 @@ export const languages: { close: '"' }, { - open: "'", - close: "'" + open: "#=", + close: "=#" } ], inlineOpenTokens: [], openTokens: [ "if", "struct", + "abstract type", + "primitive type", "begin", "let", "for", "while", "quote", "do", - "module" + "module", + "function", + "macro", + "try" ], closeTokens: ["end"], - neutralTokens: ["else", "elseif"] + neutralTokens: ["else", "elseif", "catch", "finally"] }, shellscript: { caseSensitive: true, From d42b52704b73638fe44f103f61e17cbeab720928 Mon Sep 17 00:00:00 2001 From: Qi Zhang Date: Tue, 3 Sep 2019 00:01:50 -0400 Subject: [PATCH 2/3] Update src/languages.ts test to see what would happen Co-Authored-By: Paulo Valente --- src/languages.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/languages.ts b/src/languages.ts index edab046..23906c1 100644 --- a/src/languages.ts +++ b/src/languages.ts @@ -132,6 +132,14 @@ export const languages: { { open: "#=", close: "=#" + }, + { + open: "\\[", + close: "\\]" + }, + { + open: "\\(", + close: "\\)" } ], inlineOpenTokens: [], From ed99e87519c1f3511a640d19a36e1179a9562768 Mon Sep 17 00:00:00 2001 From: Qi Zhang Date: Thu, 12 Sep 2019 18:59:27 -0400 Subject: [PATCH 3/3] Fix a breaking caused by whitespace as mentioned in https://github.com/noplay/vscode-rainbow-end/pull/16#issuecomment-531038060 --- src/languages.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/languages.ts b/src/languages.ts index 85a1082..525f158 100644 --- a/src/languages.ts +++ b/src/languages.ts @@ -146,8 +146,8 @@ export const languages: { openTokens: [ "if", "struct", - "abstract type", - "primitive type", + "abstract\\s+type", + "primitive\\s+type", "begin", "let", "for",