Skip to content

Commit

Permalink
It's working, but still needs a lot of work
Browse files Browse the repository at this point in the history
  • Loading branch information
betawaffle committed Sep 3, 2019
1 parent 6a54c3b commit 9a59f2c
Show file tree
Hide file tree
Showing 3 changed files with 934 additions and 41 deletions.
88 changes: 73 additions & 15 deletions language-configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,86 @@
// symbol used for single line comment. Remove this entry if your language does not support line comments
"lineComment": "//",
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
"blockComment": [ "/*", "*/" ]
"blockComment": [
"/*",
"*/"
]
},
// symbols used as brackets
"brackets": [
["{", "}"],
["[", "]"],
["(", ")"]
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
],
[
"<",
">"
]
],
// symbols that are auto closed when typing
"autoClosingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
],
[
"\"",
"\""
],
[
"'",
"'"
],
[
"`",
"`"
]
],
// symbols that that can be used to surround a selection
"surroundingPairs": [
["{", "}"],
["[", "]"],
["(", ")"],
["\"", "\""],
["'", "'"]
[
"{",
"}"
],
[
"[",
"]"
],
[
"(",
")"
],
[
"\"",
"\""
],
[
"'",
"'"
],
[
"`",
"`"
],
[
"#",
"#"
],
]
}
}
39 changes: 26 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,38 @@
{
"name": "cue",
"displayName": "CUE",
"description": "Basic support for the CUE configuration language.",
"description": "CUE language support for Visual Studio Code",
"version": "0.0.1",
"publisher": "cuelang.org",
"engines": {
"vscode": "^1.37.0"
},
"categories": [
"Programming Languages"
],
"contributes": {
"languages": [{
"id": "cue",
"aliases": ["CUE", "cue"],
"extensions": [".cue"],
"configuration": "./language-configuration.json"
}],
"grammars": [{
"language": "cue",
"scopeName": "source.cue",
"path": "./syntaxes/cue.tmLanguage.json"
}]
"languages": [
{
"id": "cue",
"aliases": [
"CUE",
"cue"
],
"extensions": [
".cue"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "cue",
"scopeName": "source.cue",
"path": "./syntaxes/cue.tmLanguage.json",
"embeddedLanguages": {
"source.cue.embedded": "source.cue"
}
}
]
}
}
}
Loading

0 comments on commit 9a59f2c

Please sign in to comment.