Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions syntaxes/brightscript.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -689,33 +689,6 @@
}
}
},
"if_with_paren": {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. At first glance, I think this is not the correct approach.

We don't have a lot of unit tests around the syntaxes, so I don't have full confidence as to why these deleted items are still needed, but I'm thinking a better approach would be to add the correct colorizing for those keywords rather than delete whatever else is colliding with them.

Also, if you do end up deleting these, you'll need to remove their references from the list above too, (look for #if_with_paren and #function_call

"begin": "(?i:(?<!\\.)(if)\\s*\\()",
"beginCaptures": {
"1": {
"name": "keyword.control.brs"
}
},
"patterns": [
{
"include": "#entire_language"
}
],
"end": "\b(then)|\n",
"endCaptures": {
"1": {
"name": "keyword.control.brs"
}
}
},
"function_call": {
"captures": {
"1": {
"name": "entity.name.function.brs"
}
},
"match": "(?i:\\b([a-z_][a-z0-9_]*)[ \\t]*(?=\\())"
},
"function_declaration": {
"captures": {
"1": {
Expand Down