Skip to content

Commit

Permalink
Merge branch 'master' into webpack-build
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron authored Sep 24, 2019
2 parents d1408e9 + b10be37 commit 2bd2bd2
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 8 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.19.6] - 2019-09-23
### Fixed
- bugs in language grammar (syntax highlighting)



## [1.19.5] - 2019-09-20
### Fixed
Expand Down Expand Up @@ -346,6 +351,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0



[1.19.6]: https://github.com/RokuCommunity/vscode-brightscript-language/compare/v1.19.5...v1.19.6
[1.19.5]: https://github.com/RokuCommunity/vscode-brightscript-language/compare/v1.19.4...v1.19.5
[1.19.4]: https://github.com/RokuCommunity/vscode-brightscript-language/compare/v1.19.3...v1.19.4
[1.19.3]: https://github.com/RokuCommunity/vscode-brightscript-language/compare/v1.19.2...v1.19.3
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "brightscript",
"displayName": "BrightScript Language",
"version": "1.19.5",
"version": "1.19.6",
"publisher": "celsoaf",
"description": "Language support for Roku's BrightScript language.",
"author": {
Expand Down
64 changes: 58 additions & 6 deletions syntaxes/brightscript.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,24 @@
"foldingStartMarker": "(?i)^\\s*(sub|if|f(or( each)?|unction)|while)\\s*([a-zA-Z_]\\w*)\\s*(\\(.*\\)\\s*)?$",
"foldingStopMarker": "(?i)^\\s*(next|e(nd(if| (sub|if|function))|xit( while)?))\\s*$",
"patterns": [
{
"include": "#preprocessor_keywords"
},
{
"include": "#region_comment"
},
{
"include": "#end_region_comment"
},
{
"include": "#global_constants"
},
{
"include": "#keyword_logical_operator"
},
{
"include": "#object_properties"
},
{
"include": "#vscode_rale_tracker_entry_comment"
},
Expand All @@ -38,6 +50,9 @@
{
"include": "#end_function"
},
{
"include": "#function_call"
},
{
"include": "#storage_types"
},
Expand Down Expand Up @@ -68,14 +83,42 @@
{
"include": "#string_literal"
},
{
"include": "#function_call"
},
{
"include": "#variables_and_params"
}
],
"repository": {
"preprocessor_keywords": {
"patterns": [
{
"match": "(?i:(#const))",
"name": "keyword.preprocessor.if.brs"
},
{
"match": "(?i:(#if))",
"name": "keyword.preprocessor.if.brs"
},
{
"match": "(?i:(#else\\s*if))",
"name": "keyword.preprocessor.if.brs"
},
{
"match": "(?i:(#end\\s*if))",
"name": "keyword.preprocessor.endif.brs"
}
]
},
"object_properties": {
"match": "(?i:\\b([a-z_][a-z0-9_]*)\\.([a-z_][a-z0-9_]*))",
"captures": {
"1": {
"name": "entity.name.variable.local.brs"
},
"2": {
"name": "variable.other.object.property.brs"
}
}
},
"identifiers_with_type_designators": {
"name": "entity.name.variable.local.brs",
"match": "(?i:\\b([a-z_][a-z0-9_]*)[\\$%!#])"
Expand Down Expand Up @@ -112,6 +155,11 @@
"match": "(').*$\\n?",
"name": "comment.line.apostrophe.brs"
},
"keyword_logical_operator": {
"comment": "Capture logical operators. ",
"match": "(?i:\\b(and|or|not)\\b)",
"name": "keyword.operator.logical.word"
},
"keyword_return": {
"comment": "The return statements in functions",
"captures": {
Expand Down Expand Up @@ -175,7 +223,7 @@
},
"end_function": {
"name": "keyword.declaration.function",
"match": "(?i)end\\s*(sub|function)"
"match": "(?i)[ \\t]*end\\s*(sub|function)"
},
"inline_function_declaration": {
"captures": {
Expand All @@ -200,7 +248,7 @@
"name": "keyword.control.brs"
}
},
"match": "(?i:[^\\.\\w\\\"](then|stop|run|end)(?!(\\s*:)|[\\d\\w_]))"
"match": "(?i:[^\\.\\w\\\"](then|stop|run|end|each|next)(?!(\\s*:)|[\\d\\w_]))"
},
"program_statements": {
"match": "(?i:\\b(if|else\\s*if|else|print|library|while|for\\s+each|for|end\\s*for|exit\\s+for|end\\s*while|exit\\s*while|end\\s*if|to|step|in|goto|rem|as)\\b)",
Expand Down Expand Up @@ -232,8 +280,12 @@
}
]
},
"global_constants": {
"match": "(?i:\\b(line_num)\\b)",
"name": "variable.language"
},
"support_builtin_functions": {
"match": "(?i:\\b(GetLastRun(RuntimeError|CompileError)|Rnd|Box|Type)\\b)",
"match": "(?i:\\b(GetLastRun(RuntimeError|CompileError)|Rnd|Box|Type|objfun|pos|eval)\\b)",
"name": "support.function.brs"
},
"support_global_functions": {
Expand Down

0 comments on commit 2bd2bd2

Please sign in to comment.