Skip to content

Commit 52fe13c

Browse files
committed
v0.0.5: Fix MoorDyn highlighting issues
1 parent ec56cb0 commit 52fe13c

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

CHANGELOG.md

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

3+
## 0.0.5
4+
5+
- Fixed `parameter-names` falsely matching identifiers before negative numbers (e.g. `fixed` before `-837.8`)
6+
- Added `vessel` and `Pinned` to MoorDyn keywords; made MoorDyn keyword matching case-insensitive
7+
- Fixed `table-headers` to recognize column names containing `/` and `.` (e.g. `BA/-zeta`)
8+
39
## 0.0.4
410

511
- Added TurbSim to extension name, description, and keywords

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.4",
5+
"version": "0.0.5",
66
"publisher": "SMI-Lab",
77
"repository": {
88
"type": "git",

syntaxes/openfast.tmLanguage.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
"patterns": [
184184
{
185185
"name": "keyword.other.moordyn.openfast",
186-
"match": "\\b(?:Free|Fixed|Coupled)\\b"
186+
"match": "(?i)\\b(?:Free|Fixed|Vessel|Coupled|Pinned)\\b"
187187
}
188188
]
189189
},
@@ -207,19 +207,19 @@
207207
"patterns": [
208208
{
209209
"name": "variable.parameter.openfast",
210-
"match": "(?<!\\S)[A-Za-z][A-Za-z0-9_]*(?:\\([^)]+\\))?(?=\\s+(?:-|!))"
210+
"match": "(?<!\\S)[A-Za-z][A-Za-z0-9_]*(?:\\([^)]+\\))?(?=\\s+(?:-\\s|!))"
211211
},
212212
{
213213
"name": "variable.parameter.openfast",
214-
"match": "(?<=!\\s)[A-Za-z][A-Za-z0-9_]*(?:\\([^)]+\\))?(?=\\s+-)"
214+
"match": "(?<=!\\s)[A-Za-z][A-Za-z0-9_]*(?:\\([^)]+\\))?(?=\\s+-\\s)"
215215
}
216216
]
217217
},
218218
"table-headers": {
219219
"patterns": [
220220
{
221221
"name": "support.type.table-header.openfast",
222-
"match": "^(?=.*[A-Za-z])(?!(?:\\s*!|\\s*[-=]{3,}|\\s{0,2}END\\b))\\s*(?:[A-Za-z][A-Za-z0-9_]*(?:\\([^)]+\\))?\\s+){1,}[A-Za-z][A-Za-z0-9_]*(?:\\([^)]+\\))?\\s*$"
222+
"match": "^(?=.*[A-Za-z])(?!(?:\\s*!|\\s*[-=]{3,}|\\s{0,2}END\\b))\\s*(?:[A-Za-z][A-Za-z0-9_/.-]*(?:\\([^)]+\\))?\\s+){1,}[A-Za-z][A-Za-z0-9_/.-]*(?:\\([^)]+\\))?\\s*$"
223223
}
224224
]
225225
},

0 commit comments

Comments
 (0)