diff --git a/lsp/syntaxes/civet.json b/lsp/syntaxes/civet.json index ced7b9ef..8ec7e006 100644 --- a/lsp/syntaxes/civet.json +++ b/lsp/syntaxes/civet.json @@ -166,6 +166,24 @@ } ] }, + + { + "name": "string.unquoted.module-reference.civet", + "match": "(?<=(^\\s*(import|export)|^)\\s*(type\\s+)?((\\w+\\s*,\\s*)?\\{(.|\\n)*\\}|\\w+|(\\*\\s+as\\s+\\w+))\\s+(from)\\s+)([^\\(\\{\\[\"';\\s=>][^\"';\\s=>]+|\".+?\"|'.+?')(?=[^()]|$)" + }, + { + "name": "string.unquoted.module-reference.civet", + "match": "(?<=^\\s*from\\s+)([^\\(\\{\\[\"';\\s=>][^\"';\\s=>]+|\".+?\"|'.+?')(?=\\s+(import|export)\\s*[^()])" + }, + { + "name": "string.unquoted.module-reference.civet", + "match": "(?<=^\\s*import\\s+)([^\\(\\{\\[\"';\\s=>][^\"';\\s=>]+|\".+?\"|'.+?')(?=\\s*$)" + }, + { + "name": "string.unquoted.module-reference.civet", + "match": "(?<=^export\\s+(\\w+\\s*,?\\s*)+\\s+from\\s+)([^\\(\\{\\[\"';\\s=>][^\"';\\s=>]+|\".+?\"|'.+?')(?=[^()]|$)" + }, + { "match": "\\b(?