Skip to content

Commit

Permalink
Remove unsupported decimal formats.
Browse files Browse the repository at this point in the history
  • Loading branch information
schungx committed Apr 10, 2021
1 parent 9220ba4 commit ab80276
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"displayName": "Rhai Language Support",
"description": "Syntax highlighting for Rhai scripts",
"publisher": "rhaiscript",
"version": "0.7.0",
"version": "0.6.2",
"icon": "assets/icon.png",
"homepage": "https://rhai.rs",
"bugs": {
Expand Down
16 changes: 7 additions & 9 deletions syntax/rhai.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This language definition is based upon https://github.com/Benvie/JavaScriptNext.tmLanguage
# Repo: https://github.com/rhaiscript
name: Rhai
version: v0.7.0
version: v0.6.2
fileTypes: [rhai]
uuid: 1e76f176-ee1c-4331-a781-eb21c0da77cf
scopeName: source.rhai
Expand Down Expand Up @@ -390,15 +390,13 @@ repository:
- name: constant.numeric.rhai
match: >-
(?xi)
(?:\B[-+])?
(?:
\b0b[0-1][_0-1]*| # binary
\b0o[0-7][_0-7]*| # octal
\b0x[0-9a-f][_0-9a-f]*| # hex
(
\B\.[0-9][_0-9]*| # e.g. .999
\b[0-9][_0-9]*(\.[0-9]?[_0-9]*)? # e.g. 999.999, 999. or 999
)(e[-+]?[0-9][_0-9]*)? # e.g. e+123
\b0b[0-1][_0-1]*| # binary
\b0o[0-7][_0-7]*| # octal
\b0x[\da-f][_\da-f]*| # hex
(\B[+\-])?\b\d[_\d]*\.\d[_\d]*(e[+\-]?\d[_\d]*)?| # e.g. 999.999, 999.99e+123
(\B[+\-])?\b\d[_\d]*\.\B| # e.g. 999.
(\B[+\-])?\b\d[_\d]*(e[+\-]?\d[_\d]*)? # e.g. 999, 999e+123
)
literal-punctuation:
Expand Down
4 changes: 2 additions & 2 deletions syntax/rhai.tmLanguage.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Rhai",
"version": "v0.7.0",
"version": "v0.6.2",
"fileTypes": [
"rhai"
],
Expand Down Expand Up @@ -619,7 +619,7 @@
"patterns": [
{
"name": "constant.numeric.rhai",
"match": "(?xi) (?:\\B[-+])?\n (?:\n \\b0b[0-1][_0-1]*| # binary\n \\b0o[0-7][_0-7]*| # octal\n \\b0x[0-9a-f][_0-9a-f]*| # hex\n (\n \\B\\.[0-9][_0-9]*| # e.g. .999\n \\b[0-9][_0-9]*(\\.[0-9]?[_0-9]*)? # e.g. 999.999, 999. or 999\n )(e[-+]?[0-9][_0-9]*)? # e.g. e+123\n )"
"match": "(?xi) (?:\n \\b0b[0-1][_0-1]*| # binary\n \\b0o[0-7][_0-7]*| # octal\n \\b0x[\\da-f][_\\da-f]*| # hex\n (\\B[+\\-])?\\b\\d[_\\d]*\\.\\d[_\\d]*(e[+\\-]?\\d[_\\d]*)?| # e.g. 999.999, 999.99e+123\n (\\B[+\\-])?\\b\\d[_\\d]*\\.\\B| # e.g. 999.\n (\\B[+\\-])?\\b\\d[_\\d]*(e[+\\-]?\\d[_\\d]*)? # e.g. 999, 999e+123\n )"
}
]
},
Expand Down

0 comments on commit ab80276

Please sign in to comment.