diff --git a/vs_plugin/CHANGELOG.md b/vs_plugin/CHANGELOG.md new file mode 100644 index 0000000000000000000000000000000000000000..8222289885c83a3a53837a46a55236b79fef08f3 --- /dev/null +++ b/vs_plugin/CHANGELOG.md @@ -0,0 +1,24 @@ +# STS for Visual Studio Code Changelog + +## Version 1.0.2: 03.07.2023 +### New features +* Support `launch` keyword +* Support `final` keyword +### Improvements +* Add `CHANGELOG.md` +* Add `README.md` +* Add icon for extension and files + +### Bug fixes +* Move `package.json` to root `vs_plugin` folder + +## Version 1.0.1: 16.03.2023 +### New features + +* Support `.ets` file extension for STS highlight. [!244](https://gitee.com/openharmony-sig/arkcompiler_ets_runtime/pulls/244) + +## Version 1.0.0: 30.09.2022 +### New features + +* Initial release of syntax highlight extension +* Added tests diff --git a/vs_plugin/README.md b/vs_plugin/README.md index 097d6bd422a709c8a1d5e794fcbbabf55edf5893..532cb3ef26f3aa35e48229310937b17fa7a60151 100644 --- a/vs_plugin/README.md +++ b/vs_plugin/README.md @@ -13,7 +13,8 @@ ## Build VSIX file - sudo npm install -g vsce -- type 'vsce package' in ./vs_plugin/src +- type 'vsce package' in ./vs_plugin + ## Testing Integration tests for highlighting the STS language. @@ -48,11 +49,3 @@ If you just want to make sure taht syntax highlighting works, you can follow the ## Known Issues - No known issues - -## Release Notes - -- Added tests - -### 1.0.0 - -- Initial release of syntax highlight extension \ No newline at end of file diff --git a/vs_plugin/img/panda.jpg b/vs_plugin/img/panda.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e03eae56ba0ce87c55d074c1ae8500d7ff63df45 Binary files /dev/null and b/vs_plugin/img/panda.jpg differ diff --git a/vs_plugin/package.json b/vs_plugin/package.json new file mode 100644 index 0000000000000000000000000000000000000000..d7e5a542ef189595c392e3d689e443229b5edb50 --- /dev/null +++ b/vs_plugin/package.json @@ -0,0 +1,53 @@ +{ + "name": "static-type-script", + "displayName": "Static Type Script", + "repository": { + "type": "git", + "url": "https://gitee.com/openharmony-sig/arkcompiler_ets_runtime", + "directory": "vs_plugin" + }, + "publisher": "Ark Core", + "description": "Syntax highlighting for static type script", + "version": "1.0.2", + "engines": { + "vscode": "^1.69.0" + }, + "readme": "README.md", + "bugs": { + "url": "https://gitee.com/openharmony-sig/arkcompiler_ets_runtime/issues" + }, + "keywords": [ + "STS" + ], + "categories": [ + "Programming Languages" + ], + "contributes": { + "languages": [ + { + "id": "sts", + "aliases": [ + "StaticTypeScript", + "sts" + ], + "extensions": [ + ".sts", + ".ets" + ], + "icon": { + "light": "img/panda.jpg", + "dark": "img/panda.jpg" + }, + "configuration": "./src/language-configuration.json" + } + ], + "grammars": [ + { + "language": "sts", + "scopeName": "source.sts", + "path": "./src/syntaxes/sts.tmLanguage.json" + } + ] + }, + "icon": "img/panda.jpg" +} \ No newline at end of file diff --git a/vs_plugin/src/package.json b/vs_plugin/src/package.json deleted file mode 100644 index cee3f0cdc8732f80a565af308588c03324c54680..0000000000000000000000000000000000000000 --- a/vs_plugin/src/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "static-type-script", - "displayName": "Static Type Script", - "repository": "https://gitee.com/openharmony-sig/arkcompiler_ets_runtime", - "description": "Syntax highlighting for static type script", - "version": "1.0.1", - "engines": { - "vscode": "^1.69.0" - }, - "categories": [ - "Programming Languages" - ], - "contributes": { - "languages": [{ - "id": "sts", - "aliases": ["StaticTypeScript", "sts"], - "extensions": [".sts", ".ets"], - "configuration": "./language-configuration.json" - }], - "grammars": [{ - "language": "sts", - "scopeName": "source.sts", - "path": "./syntaxes/sts.tmLanguage.json" - }] - } -} \ No newline at end of file diff --git a/vs_plugin/src/static-type-script-1.0.1.vsix b/vs_plugin/src/static-type-script-1.0.1.vsix deleted file mode 100644 index e9277ddbe588bc6aeb0d7219e9696bf091e6f006..0000000000000000000000000000000000000000 Binary files a/vs_plugin/src/static-type-script-1.0.1.vsix and /dev/null differ diff --git a/vs_plugin/src/syntaxes/sts.tmLanguage.json b/vs_plugin/src/syntaxes/sts.tmLanguage.json index 8b9203f7ef6bcd55a2ded4f1f89fc0fd1b674add..4f08d543e5f9daa6527502c602fa2003fddb743d 100644 --- a/vs_plugin/src/syntaxes/sts.tmLanguage.json +++ b/vs_plugin/src/syntaxes/sts.tmLanguage.json @@ -1633,7 +1633,7 @@ }, "class-declaration": { "name": "meta.class.sts", - "begin": "(?]|^await|[^\\._$[:alnum:]]await|^return|[^\\._$[:alnum:]]return|^yield|[^\\._$[:alnum:]]yield|^throw|[^\\._$[:alnum:]]throw|^in|[^\\._$[:alnum:]]in|^of|[^\\._$[:alnum:]]of|^typeof|[^\\._$[:alnum:]]typeof|&&|\\|\\||\\*)\\s*(\\{)", + "begin": "(?]|^await|[^\\._$[:alnum:]]await|^return|[^\\._$[:alnum:]]return|^yield|[^\\._$[:alnum:]]yield|^launch|[^\\._$[:alnum:]]launch|^throw|[^\\._$[:alnum:]]throw|^in|[^\\._$[:alnum:]]in|^of|[^\\._$[:alnum:]]of|^typeof|[^\\._$[:alnum:]]typeof|&&|\\|\\||\\*)\\s*(\\{)", "beginCaptures": { "1": { "name": "punctuation.definition.block.sts" @@ -2707,7 +2707,7 @@ "patterns": [ { "include": "#function-body" - } + } ] }, { @@ -3344,7 +3344,7 @@ }, { "name": "cast.expr.sts", - "begin": "(?:(?*?\\&\\|\\^]|[^_$[:alnum:]](?:\\+\\+|\\-\\-)|[^\\+]\\+|[^\\-]\\-))\\s*(<)(?!*?\\&\\|\\^]|[^_$[:alnum:]](?:\\+\\+|\\-\\-)|[^\\+]\\+|[^\\-]\\-))\\s*(<)(?!