Skip to content

Commit

Permalink
feat: improve highlighting of hive lanuguage (#59)
Browse files Browse the repository at this point in the history
* feat: improve highlighting of hive lanuguage

* feat: fix hive monarch tokenizer unit tests

* feat: replace white tokenClass with tokenClassConsts.WHITE

* feat: add miuns to set operators
  • Loading branch information
HaydenOrz committed Nov 1, 2023
1 parent 4de9815 commit 43c14c8
Show file tree
Hide file tree
Showing 5 changed files with 653 additions and 1,431 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,5 @@ jobs:
- name: npm install
run: npm install

- name: Compile
run: npm run compile

- name: Test
run: npm test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"compile": "mrmdir ./out && tsc -p ./tsconfig.amd.json && tsc -p ./tsconfig.esm.json",
"watch-esm": "tsc -p ./tsconfig.esm.json --watch",
"test": "mocha ./test/all.js",
"test": "npm run compile && mocha ./test/all.js",
"prepublishOnly": "npm run compile",
"prettier": "prettier --write .",
"check-types": "tsc -p ./tsconfig.json",
Expand Down
2 changes: 1 addition & 1 deletion src/flinksql/flinksql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ export const language = <languages.IMonarchLanguage>{
],
[/[<>=!%&+\-*/|~^]/, tokenClassConsts.OPERATOR_SYMBOL]
],
whitespace: [[/[\s\t\r\n]+/, 'white']],
whitespace: [[/[\s\t\r\n]+/, tokenClassConsts.WHITE]],
comments: [
[/--+.*/, tokenClassConsts.COMMENT],
[/\/\*/, { token: tokenClassConsts.COMMENT_QUOTE, next: '@comment' }]
Expand Down
Loading

0 comments on commit 43c14c8

Please sign in to comment.