Files
Library/node_modules/@shikijs/langs/dist/julia.mjs

17 lines
32 KiB
JavaScript
Raw Normal View History

2026-01-09 23:05:52 -05:00
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}[^\\\\x01-¡\\\\P{Mn}][^\\\\x01-¡\\\\P{Mc}][^\\\\x01-¡\\\\D][^\\\\x01-¡\\\\P{Pc}][^\\\\x01-¡\\\\P{Sk}][^\\\\x01-¡\\\\P{Me}][^\\\\x01-¡\\\\P{No}][^←-⇿\\\\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
export default [
...cpp,
...python,
...javascript,
...r,
...sql,
lang
]