add Julia grammar

This commit is contained in:
Sebastian Pfitzner 2021-01-28 16:55:22 +01:00
parent c8a90a4826
commit b0ac7e40bb
6 changed files with 1221 additions and 0 deletions

View file

@ -0,0 +1,2 @@
build/**
cgmanifest.json

View 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
}

View file

@ -0,0 +1,31 @@
{
"comments": {
"lineComment": "#",
"blockComment": [ "#=", "=#" ]
},
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["`", "`"],
{ "open": "\"", "close": "\"", "notIn": ["string", "comment"] }
],
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["`", "`"]
],
"folding": {
"markers": {
"start": "^\\s*#region",
"end": "^\\s*#endregion"
}
}
}

View 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"
}
}
]
}
}

View file

@ -0,0 +1,4 @@
{
"displayName": "Julia Language Basics",
"description": "Provides syntax highlighting & bracket matching in Julia files."
}

File diff suppressed because it is too large Load diff