Skip to content
This repository was archived by the owner on Feb 9, 2025. It is now read-only.

Commit 67e62db

Browse files
committed
1.2.5
- Update to NovaSheets 0.6.3 - Add 2 alternative file extensions
1 parent 4e7e662 commit 67e62db

7 files changed

Lines changed: 73 additions & 10 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
colors.txt
1+
.vscode
2+
*.local.*

.vscodeignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.vscode/**
22
.git/**
33
.gitignore
4-
colors.txt
4+
*.local.*

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 1.2.5
4+
- Added syntax highlighting for CSS declaration substitutions.
5+
- Added syntax highlighting for object getter notaton.
6+
- Added `.novasheet` and `.novasheets` as valid file extensions.
7+
38
## 1.2.4
49
- Added syntax highlighting for static comments (`/*/ text /*/`) and parsed comments (`/*[ ]*/`).
510
- Added syntax highlighting for loop indentifiers `$i`, `$v`, and `$v[n]`.

license.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# MIT License
2+
3+
Copyright © 2020 Nixinova
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
- The above copyright notice and an equivalent permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
- The Software is provided "as is", without warranty of any kind, express or
16+
implied, including but not limited to the warranties of merchantability,
17+
fitness for a particular purpose and noninfringement. In no event shall the
18+
authors or copyright holders be liable for any claim, damages or other
19+
liability, whether in an action of contract, tort or otherwise, arising from,
20+
out of or in connection with the Software or the use or other dealings in the
21+
Software.

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"description": "Syntax highlighter for NovaSheets files",
55
"publisher": "Nixinova",
66
"repository": "NovaSheets-vscode",
7-
"version": "1.2.4",
7+
"version": "1.2.5",
88
"engines": {
9-
"vscode": "^1.45.0"
9+
"vscode": "^1.49.0"
1010
},
1111
"categories": [
1212
"Programming Languages"
@@ -22,7 +22,9 @@
2222
],
2323
"extensions": [
2424
".nss",
25-
".nss.txt"
25+
".nss.txt",
26+
".novasheet",
27+
".novasheets"
2628
],
2729
"configuration": "./language-configuration.json"
2830
}

readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
[![Latest version](https://img.shields.io/github/v/release/Nixinova/NovaSheets-vscode?label=latest&style=flat-square)](https://github.com/Nixinova/NovaSheets-vscode/releases)
2-
[![Marketplace version](https://img.shields.io/visual-studio-marketplace/v/Nixinova.novasheets?label=marketplace&style=flat-square)](https://marketplace.visualstudio.com/items/Nixinova.novasheets)
1+
[![Latest version](https://img.shields.io/github/v/release/Nixinova/NovaSheets-vscode?label=latest&style=flat-square&logo=github)](https://github.com/Nixinova/NovaSheets-vscode/releases)
2+
[![Marketplace version](https://img.shields.io/visual-studio-marketplace/v/Nixinova.novasheets?label=marketplace&style=flat-square&logo=visual-studio)](https://marketplace.visualstudio.com/items/Nixinova.novasheets)
33
[![Last updated](https://img.shields.io/github/release-date/Nixinova/NovaSheets-vscode?label=updated&style=flat-square)](https://github.com/Nixinova/NovaSheets-vscode/releases)
4-
[![Downloads](https://img.shields.io/visual-studio-marketplace/d/Nixinova.novasheets?style=flat-square)](https://marketplace.visualstudio.com/items/Nixinova.novasheets)
5-
[![Installs](https://img.shields.io/visual-studio-marketplace/i/Nixinova.novasheets?style=flat-square)](https://marketplace.visualstudio.com/items/Nixinova.novasheets)
4+
[![Downloads](https://img.shields.io/visual-studio-marketplace/d/Nixinova.novasheets?style=flat-square&logo=visual-studio)](https://marketplace.visualstudio.com/items/Nixinova.novasheets)
5+
[![Installs](https://img.shields.io/visual-studio-marketplace/i/Nixinova.novasheets?style=flat-square&logo=visual-studio)](https://marketplace.visualstudio.com/items/Nixinova.novasheets)
66

77
This is a [VSCode](https://github.com/microsoft/vscode) extension for [NovaSheets](https://github.com/Nixinova/NovaSheets) syntax highlighting.
88

@@ -13,4 +13,4 @@ This extension includes syntax highlighting for NovaSheet syntax, including Nova
1313
This extension is available in the [VSCode Marketplace](https://marketplace.visualstudio.com/items/Nixinova.novasheets); install it either from there, by searching "NovaSheets" inside VSCode, or by downloading the package found in the [releases tab](https://github.com/Nixinova/NovaSheets-vscode/releases).
1414

1515
# Usage
16-
Just load a `.nss` or `.nss.txt` file in VSCode and NovaSheets syntax highlighting should occur.
16+
Just load a NovaSheets file with valid file extension in VSCode and NovaSheets syntax highlighting should occur. Valid extensions are `.nss.`, `.nss.txt.`, `.novasheet`, and `.novasheets`.

syntaxes/novasheets.tmLanguage.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
{
1616
"include": "#variable"
1717
},
18+
{
19+
"include": "#declaration_substitution"
20+
},
21+
{
22+
"include": "#object_getter"
23+
},
1824
{
1925
"include": "#parameter"
2026
},
@@ -125,6 +131,34 @@
125131
}
126132
]
127133
},
134+
"declaration_substitution": {
135+
"match": "(\\$<)([\\w.:~+>()]+)(>)",
136+
"captures": {
137+
"1": {
138+
"name": "constant.character.nss"
139+
},
140+
"2": {
141+
"name": "entity.other.attribute-name.class.css"
142+
},
143+
"3": {
144+
"name": "constant.character.nss"
145+
}
146+
}
147+
},
148+
"object_getter": {
149+
"match": "(?<=>|})(\\[)(\\w+?)(\\])",
150+
"captures": {
151+
"1": {
152+
"name": "constant.character.nss"
153+
},
154+
"2": {
155+
"name": "support.type.property-name.css"
156+
},
157+
"3": {
158+
"name": "constant.character.nss"
159+
}
160+
}
161+
},
128162
"parameter": {
129163
"match": "(\\$\\[)(.+?)(\\|(.*?))?(?:(\\s//.+$)|(\\]))",
130164
"captures": {

0 commit comments

Comments
 (0)