Skip to content

Commit 5d1c936

Browse files
committed
make keywords case-insensitive
1 parent e3abbf8 commit 5d1c936

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
# MeVisLab Description Language (MDL) Support
22

3-
This extension shall be used for editing MeVisLab MDL files (mostly .def and .script).
3+
This extension shall be used for editing MeVisLab MDL files (mostly `.def` and `.script`).
44

55
## Features
66

77
* Single-line comments
8-
* Strings ("" and @@)
8+
* Strings (`""`, `"* ... *"` and `@@ ... @@`)
99

1010
## TODO
1111

12-
* "* *" strings
1312
* Test/implement multiline strings
14-
* More keywords
15-
* Case-insensitive keywords (e.g. Yes, NO)
13+
* More keywords (cf. `MeVisLab/IDE/Modules/IDE/MDLValidation.def`)
1614
* embeddedLanguage for Python code (e.g. Fiedlisteners)
1715

1816
The vsc-extension-quickstart.md gives information on how to develop and use

syntaxes/mdl.tmLanguage.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"keywords": {
3333
"patterns": [{
3434
"name": "keyword.control.mdl",
35-
"match": "\\b(true|false|on|off|yes|no)\\b"
35+
"match": "(?i)\\b(true|false|on|off|yes|no)\\b"
3636
}]
3737
},
3838
"strings": {

test.mdl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ Window {
2121
Category {
2222
Field inputValue { slider = true }
2323
}
24+
Field foo {
25+
show0 = YES
26+
show1 = Yes
27+
show2 = yes
28+
show3 = yeS
29+
}
2430
}
2531

2632
Window "Alternative with Title" {

0 commit comments

Comments
 (0)