Skip to content

Commit 7326b21

Browse files
committed
v0.0.6: Fix inline bang-comment highlighting to extend to end of line
1 parent 52fe13c commit 7326b21

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

CHANGELOG.md

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

3+
## 0.0.6
4+
5+
- Fixed inline `!` comments: now the full comment text after `!` is highlighted, not just the `!` character itself
6+
37
## 0.0.5
48

59
- Fixed `parameter-names` falsely matching identifiers before negative numbers (e.g. `fixed` before `-837.8`)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "openfast-rosco-syntax-highlighting",
33
"displayName": "OpenFAST, ROSCO & TurbSim Syntax Highlighting",
44
"description": "Syntax highlighting for OpenFAST, ROSCO, and TurbSim input and output files in Visual Studio Code.",
5-
"version": "0.0.5",
5+
"version": "0.0.6",
66
"publisher": "SMI-Lab",
77
"repository": {
88
"type": "git",

syntaxes/openfast.tmLanguage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@
325325
"bang-comments": {
326326
"patterns": [
327327
{
328-
"name": "punctuation.definition.comment.openfast",
329-
"match": "(?<=\\s)!\\s*"
328+
"name": "comment.line.bang.openfast",
329+
"match": "(?<=\\S)\\s+!.*$"
330330
}
331331
]
332332
},

0 commit comments

Comments
 (0)