Files
code_tool_fly/VSCode-win32-x64-1.74.0/resources/app/extensions/julia/syntaxes/julia.tmLanguage.json
T

1 line
30 KiB
JSON
Raw Normal View History

2025-05-09 16:55:09 +08:00
{"information_for_contributors":["This file has been converted from https://github.com/JuliaEditorSupport/atom-language-julia/blob/master/grammars/julia_vscode.json","If you want to provide a fix or improvement, please create a pull request against the original repository.","Once accepted there, we are happy to receive an update request."],"version":"https://github.com/JuliaEditorSupport/atom-language-julia/commit/7b7801f41ce4ac1303bd17e057dbe677e24f597f","name":"Julia","scopeName":"source.julia","comment":"This grammar is used by Atom (Oniguruma), GitHub (PCRE), and VSCode (Oniguruma),\nso all regexps must be compatible with both engines.\n\nSpecs:\n- https://github.com/kkos/oniguruma/blob/master/doc/RE\n- https://www.pcre.org/current/doc/html/","patterns":[{"include":"#operator"},{"include":"#array"},{"include":"#string"},{"include":"#parentheses"},{"include":"#bracket"},{"include":"#function_decl"},{"include":"#function_call"},{"include":"#keyword"},{"include":"#number"},{"include":"#comment"},{"include":"#type_decl"},{"include":"#symbol"}],"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"},{"match":"\\bfor\\b","name":"keyword.control.julia"},{"include":"$self"}]}]},"parentheses":{"patterns":[{"begin":"\\(","beginCaptures":{"0":{"name":"meta.bracket.julia"}},"end":"(\\))((?:\\.)?'*)","endCaptures":{"1":{"name":"meta.bracket.julia"},"2":{"name":"keyword.operator.transpose.julia"}},"patterns":[{"include":"$self"}]}]},"bracket":{"patterns":[{"match":"(?:\\(|\\)|\\[|\\]|\\{|\\}|,|;)(?!('|(?:\\.'))*\\.?')","name":"meta.bracket.julia"}]},"comment":{"patterns":[{"include":"#comment_block"},{"begin":"#","beginCaptures":{"0":{"name":"punctuation.definition.comment.julia"}},"end":"\\n","name":"comment.line.number-sign.julia"}]},"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_block"}]}]},"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":[{"match":"\\bfor\\b","name":"keyword.control.julia"},{"include":"$self"}]}]},"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}â…€-⅄∿⊾⊿⊤⊥∂∅-∇∎âˆâˆâˆ‘∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀âŸâ¦°-⦴⨀-⨆⨉-⨖⨛⨜ðð››ð›»ðœ•ðœµðð¯ðž‰ðž©ðŸƒâ±-â¾â‚-₎∠-∢⦛-⦯℘℮゛-゜ðŸŽ-ðŸ¡]|[^\\P{So}â†-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}â…€-⅄∿⊾⊿⊤⊥∂∅-∇∎âˆâˆâˆ‘∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀âŸ