https://github.com/thenetadmin/vscode-linkerscript
GNU linker script language support for vscode.
https://github.com/thenetadmin/vscode-linkerscript
Last synced: 7 months ago
JSON representation
GNU linker script language support for vscode.
- Host: GitHub
- URL: https://github.com/thenetadmin/vscode-linkerscript
- Owner: TheNetAdmin
- License: mit
- Created: 2018-08-17T09:41:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-11T19:20:17.000Z (over 2 years ago)
- Last Synced: 2025-02-26T10:54:08.099Z (about 1 year ago)
- Language: Dockerfile
- Homepage: https://marketplace.visualstudio.com/items?itemName=ZixuanWang.linkerscript
- Size: 53.7 KB
- Stars: 23
- Watchers: 4
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# LinkerScript Language Support for VSCode
This is the language support for LinkerScript for VSCode, provides syntax highlight.
It provides syntax highlight with [TmLanguage](https://macromates.com/manual/en/language_grammars) based on [regex](https://macromates.com/manual/en/regular_expressions) , without Abstract Syntax Tree (AST), thus some syntaxes and language features may not get correct highlight.
For source code, please visit [Github](https://github.com/TheNetAdmin/vscode-linkerscript).
## Develop
1. Install npm package `yamljs`
2. Edit rules in `*.yaml`
3. Use `yaml2json ***.yaml >***.json` to convert to json
4. Run with newly updated `***.json`
> Or you can use `F5` to run directly if `yamljs` is already installed globally, all configs are located at `.vscode/`
## Known issues
- **Lack of Multiline Match**: The regex expressions ought to match across lines to work with some syntax, but I currently cannot switch the `multiline` mode on. Maybe its related to issue [#13155](https://github.com/Microsoft/vscode/issues/13155), and if so, this feature [should be available now](https://github.com/BurntSushi/ripgrep/issues/176).
- **Misordered Syntax Highlight**: Due to the limitation of regex, some misordered options may not get highlight. If you wish to get support, please rearrange them according to [GNU Linker Script](https://sourceware.org/binutils/docs/ld/Scripts.html).
## Highlight preview

## License
This project is released under MIT License.