17 lines
35 KiB
JavaScript
17 lines
35 KiB
JavaScript
|
import cpp from './cpp.mjs'
|
|||
|
import python from './python.mjs'
|
|||
|
import javascript from './javascript.mjs'
|
|||
|
import r from './r.mjs'
|
|||
|
import sql from './sql.mjs'
|
|||
|
|
|||
|
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Julia\",\"name\":\"julia\",\"patterns\":[{\"include\":\"#operator\"},{\"include\":\"#array\"},{\"include\":\"#string\"},{\"include\":\"#parentheses\"},{\"include\":\"#bracket\"},{\"include\":\"#function_decl\"},{\"include\":\"#function_call\"},{\"include\":\"#for_block\"},{\"include\":\"#keyword\"},{\"include\":\"#number\"},{\"include\":\"#comment\"},{\"include\":\"#type_decl\"},{\"include\":\"#symbol\"},{\"include\":\"#punctuation\"}],\"repository\":{\"array\":{\"patterns\":[{\"begin\":\"\\\\[\",\"beginCaptures\":{\"0\":{\"name\":\"meta.bracket.julia\"}},\"end\":\"(\\\\])((?:\\\\.)?'*)\",\"endCaptures\":{\"1\":{\"name\":\"meta.bracket.julia\"},\"2\":{\"name\":\"keyword.operator.transpose.julia\"}},\"name\":\"meta.array.julia\",\"patterns\":[{\"match\":\"\\\\bbegin\\\\b\",\"name\":\"constant.numeric.julia\"},{\"match\":\"\\\\bend\\\\b\",\"name\":\"constant.numeric.julia\"},{\"include\":\"#self_no_for_block\"}]}]},\"bracket\":{\"patterns\":[{\"begin\":\"\\\\{\",\"beginCaptures\":{\"0\":{\"name\":\"meta.bracket.julia\"}},\"end\":\"(\\\\})((?:\\\\.)?'*)\",\"endCaptures\":{\"1\":{\"name\":\"meta.bracket.julia\"},\"2\":{\"name\":\"keyword.operator.transpose.julia\"}},\"patterns\":[{\"include\":\"#self_no_for_block\"}]}]},\"comment\":{\"patterns\":[{\"include\":\"#comment_block\"},{\"begin\":\"#\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.julia\"}},\"end\":\"\\\\n\",\"name\":\"comment.line.number-sign.julia\",\"patterns\":[{\"include\":\"#comment_tags\"}]}]},\"comment_block\":{\"patterns\":[{\"begin\":\"#=\",\"beginCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.begin.julia\"}},\"end\":\"=#\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.definition.comment.end.julia\"}},\"name\":\"comment.block.number-sign-equals.julia\",\"patterns\":[{\"include\":\"#comment_tags\"},{\"include\":\"#comment_block\"}]}]},\"comment_tags\":{\"patterns\":[{\"match\":\"\\\\bTODO\\\\b\",\"name\":\"keyword.other.comment-annotation.julia\"},{\"match\":\"\\\\bFIXME\\\\b\",\"name\":\"keyword.other.comment-annotation.julia\"},{\"match\":\"\\\\bCHANGED\\\\b\",\"name\":\"keyword.other.comment-annotation.julia\"},{\"match\":\"\\\\bXXX\\\\b\",\"name\":\"keyword.other.comment-annotation.julia\"}]},\"for_block\":{\"patterns\":[{\"begin\":\"\\\\b(for)\\\\b\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.control.julia\"}},\"end\":\"(?<!,|\\\\s)(\\\\s*\\\\n)\",\"patterns\":[{\"match\":\"\\\\bouter\\\\b\",\"name\":\"keyword.other.julia\"},{\"include\":\"$self\"}]}]},\"function_call\":{\"patterns\":[{\"begin\":\"((?:[[:alpha:]_\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\\\P{So}←-⇿])(?:[[:word:]_!\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\\\P{Mn}\\u0001-¡]|[^\\\\P{Mc}\\u0001-¡]|[^\\\\P{Nd}\\u0001-¡]|[^\\\\P{Pc}\\u0001-¡]|[^\\\\P{Sk}\\u0001-¡]|[^\\\\P{Me}\\u0001-¡]|[^\\\\P{No}\\u0001-¡]|[′-‷⁗]|[^\\\\P{So}←-⇿])*)({(?:[^{}]|{(?:[^{}]|{[^{}]*})*})*})?\\\\.?(\\\\()\",\"beginCaptures\":{\"1\":{\"name\":\"support.function.julia\"},\"2\":{\"name\":\"support.type.julia\"},\"3\":{\"name\":\"meta.bracket.julia\"}},\"end\":\"\\\\)(('|(\\\\.'))*\\\\.?')?\",\"endCaptures\":{\"0\":{\"name\":\"meta.bracket.julia\"},\"1\":{\"name\":\"keyword.operator.transposed-func.julia\"}},\"patterns\":[{\"include\":\"#self_no_for_block\"}]}]},\"function_decl\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"entity.name.function.julia\"},\"2\":{\"name\":\"support.type.julia\"}},\"match\":\"((?:[[:alpha:]_\\\\p{Lu}\\\\p{Ll}\\\\p{Lt}\\\\p{Lm}\\\\p{Lo}\\\\p{Nl}\\\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸
|
|||
|
|
|||
|
export default [
|
|||
|
...cpp,
|
|||
|
...python,
|
|||
|
...javascript,
|
|||
|
...r,
|
|||
|
...sql,
|
|||
|
lang
|
|||
|
]
|