mirror of
https://github.com/Microsoft/vscode
synced 2024-10-01 08:50:48 +00:00
add Julia grammar
This commit is contained in:
parent
c8a90a4826
commit
b0ac7e40bb
2
extensions/julia/.vscodeignore
Normal file
2
extensions/julia/.vscodeignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
build/**
|
||||
cgmanifest.json
|
17
extensions/julia/cgmanifest.json
Normal file
17
extensions/julia/cgmanifest.json
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"registrations": [
|
||||
{
|
||||
"component": {
|
||||
"type": "git",
|
||||
"git": {
|
||||
"name": " JuliaEditorSupport/atom-language-julia",
|
||||
"repositoryUrl": "https://github.com/JuliaEditorSupport/atom-language-julia",
|
||||
"commitHash": "df335e026376acd722439aa1ac08f0889ada022e"
|
||||
}
|
||||
},
|
||||
"license": "MIT",
|
||||
"version": "0.20.2"
|
||||
}
|
||||
],
|
||||
"version": 1
|
||||
}
|
31
extensions/julia/language-configuration.json
Normal file
31
extensions/julia/language-configuration.json
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
"comments": {
|
||||
"lineComment": "#",
|
||||
"blockComment": [ "#=", "=#" ]
|
||||
},
|
||||
"brackets": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"]
|
||||
],
|
||||
"autoClosingPairs": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"],
|
||||
["`", "`"],
|
||||
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] }
|
||||
],
|
||||
"surroundingPairs": [
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"],
|
||||
["\"", "\""],
|
||||
["`", "`"]
|
||||
],
|
||||
"folding": {
|
||||
"markers": {
|
||||
"start": "^\\s*#region",
|
||||
"end": "^\\s*#endregion"
|
||||
}
|
||||
}
|
||||
}
|
54
extensions/julia/package.json
Normal file
54
extensions/julia/package.json
Normal file
|
@ -0,0 +1,54 @@
|
|||
{
|
||||
"name": "julia",
|
||||
"displayName": "%displayName%",
|
||||
"description": "%description%",
|
||||
"version": "1.0.0",
|
||||
"publisher": "vscode",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"vscode": "0.10.x"
|
||||
},
|
||||
"scripts": {
|
||||
"update-grammar": "node ../../build/npm/update-grammar.js JuliaEditorSupport/atom-language-julia grammars/julia_vscode.json ./syntaxes/julia.tmLanguage.json"
|
||||
},
|
||||
"contributes": {
|
||||
"languages": [
|
||||
{
|
||||
"id": "julia",
|
||||
"aliases": [
|
||||
"Julia",
|
||||
"julia"
|
||||
],
|
||||
"extensions": [
|
||||
".jl"
|
||||
],
|
||||
"firstLine": "^#!\\s*/.*\\bjulia[0-9.-]*\\b",
|
||||
"configuration": "./language-configuration.json"
|
||||
},
|
||||
{
|
||||
"id": "juliamarkdown",
|
||||
"aliases": [
|
||||
"Julia Markdown",
|
||||
"juliamarkdown"
|
||||
],
|
||||
"extensions": [
|
||||
".jmd"
|
||||
]
|
||||
}
|
||||
],
|
||||
"grammars": [
|
||||
{
|
||||
"language": "julia",
|
||||
"scopeName": "source.julia",
|
||||
"path": "./syntaxes/julia.tmLanguage.json",
|
||||
"embeddedLanguages": {
|
||||
"meta.embedded.inline.cpp": "cpp",
|
||||
"meta.embedded.inline.javascript": "javascript",
|
||||
"meta.embedded.inline.python": "python",
|
||||
"meta.embedded.inline.r": "r",
|
||||
"meta.embedded.inline.sql": "sql"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
4
extensions/julia/package.nls.json
Normal file
4
extensions/julia/package.nls.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"displayName": "Julia Language Basics",
|
||||
"description": "Provides syntax highlighting & bracket matching in Julia files."
|
||||
}
|
1113
extensions/julia/syntaxes/julia.tmLanguage.json
Normal file
1113
extensions/julia/syntaxes/julia.tmLanguage.json
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue