Skip to content

Commit e4b3868

Browse files
Use explicit JSON grammar.
1 parent 140394e commit e4b3868

File tree

9 files changed

+402
-17
lines changed

9 files changed

+402
-17
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "syntaxes"]
2-
path = syntaxes
3-
url = https://github.com/textualize/tcss-textmate-grammar

.vscode/settings.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
"out": true // set this to false to include "out" folder in search results
88
},
99
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10-
"typescript.tsc.autoDetect": "off"
11-
}
10+
"typescript.tsc.autoDetect": "off",
11+
"editor.fontLigatures": false
12+
}

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3-
## [0.1.0]
3+
4+
## 0.2.0
5+
6+
- Add highlighting for all types of values
7+
- Add highlighting for variable use and assignment
8+
9+
## 0.1.0
410

511
- Initial release

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,16 @@
55
Does syntax highlighting for Textual CSS files (files with the extension `.tcss`).
66

77
![A view of a highlighted file.](./tcss.png)
8-
## Known Issues
98

10-
This extension does not support highlighting variables or selectors.
9+
10+
## Grammar dependency
11+
12+
This extension uses the grammar `tcss.tmGrammar.json` that is converted from the YAML grammar in the [TCSS TextMate grammar repository](https://github.com/Textualize/tcss-textmate-grammar).
13+
To convert the YAML grammar into this JSON grammar, use
14+
15+
```bash
16+
npx js-yaml ../tcss-textmate-grammar/grammar.yaml > syntaxes/tcss.tmGrammar.json
17+
```
1118

1219
## Release Notes
1320

package-lock.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
"languages": [
1818
{
1919
"id": "Textual CSS",
20-
"extensions": [".tcss"]
20+
"extensions": [
21+
".tcss"
22+
]
2123
}
2224
],
2325
"grammars": [
@@ -38,16 +40,17 @@
3840
"test": "node ./out/test/runTest.js"
3941
},
4042
"devDependencies": {
41-
"@types/vscode": "^1.79.0",
4243
"@types/glob": "^8.1.0",
4344
"@types/mocha": "^10.0.1",
4445
"@types/node": "20.2.5",
46+
"@types/vscode": "^1.79.0",
4547
"@typescript-eslint/eslint-plugin": "^5.59.8",
4648
"@typescript-eslint/parser": "^5.59.8",
49+
"@vscode/test-electron": "^2.3.2",
4750
"eslint": "^8.41.0",
4851
"glob": "^8.1.0",
52+
"js-yaml": "^4.1.0",
4953
"mocha": "^10.2.0",
50-
"typescript": "^5.1.3",
51-
"@vscode/test-electron": "^2.3.2"
54+
"typescript": "^5.1.3"
5255
}
5356
}

syntaxes

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)