{"id":19234289,"url":"https://github.com/redcmd/tmlanguage-syntax-highlighter","last_synced_at":"2025-04-21T05:30:41.409Z","repository":{"id":60861744,"uuid":"439509942","full_name":"RedCMD/TmLanguage-Syntax-Highlighter","owner":"RedCMD","description":"Syntax Highlighting and Intellisense for VSCode's JSON based TextMate grammars (with Regex)","archived":false,"fork":false,"pushed_at":"2024-09-08T10:32:36.000Z","size":21049,"stargazers_count":18,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-08T14:48:42.482Z","etag":null,"topics":["syntax-highlighting","textmate","vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=RedCMD.tmlanguage-syntax-highlighter","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RedCMD.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-18T02:28:25.000Z","updated_at":"2024-09-08T10:32:39.000Z","dependencies_parsed_at":"2024-01-16T10:28:54.880Z","dependency_job_id":"4e5fede0-5991-40da-a2ae-4fa37914dc0d","html_url":"https://github.com/RedCMD/TmLanguage-Syntax-Highlighter","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedCMD%2FTmLanguage-Syntax-Highlighter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedCMD%2FTmLanguage-Syntax-Highlighter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedCMD%2FTmLanguage-Syntax-Highlighter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedCMD%2FTmLanguage-Syntax-Highlighter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedCMD","download_url":"https://codeload.github.com/RedCMD/TmLanguage-Syntax-Highlighter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250002137,"owners_count":21359053,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["syntax-highlighting","textmate","vscode-extension"],"created_at":"2024-11-09T16:13:22.589Z","updated_at":"2025-04-21T05:30:41.393Z","avatar_url":"https://github.com/RedCMD.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TmLanguage-Syntax-Highlighter\nSyntax Highlighting and Intellisense for VSCodes's JSON based TextMate grammars\n\n## Features\n* Syntax Highlighting\n* Basic Intellisense\n* Diagnostics error reporting\n* Ctrl+click Definitions\n* Breadcrumbs/Outline\n* Formatting\n* Schema support\n* Regex [Optimizer](https://github.com/slevithan/oniguruma-parser)\n* `repository`/`include` Call Hierarchy View\n* [F2] Rename\n* CodeLens\n* CallStack Viewer\n* Deadcode dims\n* Supported in [VSCode Web](https://insiders.vscode.dev/)\n\nExample code:  \n![example-code](https://raw.githubusercontent.com/RedCMD/TmLanguage-Syntax-Highlighter/main/images/Example%20Code%20V2.5.png)\n\nHighlights scope names with their own themed colour in realtime:  \n![list-of-VSCode-Dark+-scopenames-and-their-colours](https://raw.githubusercontent.com/RedCMD/TmLanguage-Syntax-Highlighter/main/images/VSCode%20Dark+%20theme%20coloured%20scope-names.png)\n\n```json textmate\n{\n  \"$schema\": \"https://raw.githubusercontent.com/RedCMD/TmLanguage-Syntax-Highlighter/main/vscode.tmLanguage.schema.json\",\n  \"name\": \"languageId\",\n  \"scopeName\": \"source.languageId\",\n  \"patterns\": [\n    { \"include\": \"#repo-item\" },\n    { \"include\": \"#string\" },\n    { \"include\": \"#boolean\" }\n  ],\n  \"repository\": {\n    \"repo-item\": { },\n    \"boolean\": {\n      \"comment\": \"`\\\\b` is a 0-width word boundary. `$1` references capture group 1\",\n      \"match\": \"\\\\b(true|false)\\\\b\",\n      \"name\": \"constant.language.$1.languageId\"\n    },\n    \"string\": {\n      \"comment\": \"\\\"begin\\\" \u0026 \\\"end\\\" can create a multi-line region\",\n      \"begin\": \"\\\"\",\n      \"end\": \"\\\"\",\n      \"beginCaptures\": { \"0\": { \"name\": \"punctuation.definition.string.begin.languageId\" } },\n      \"endCaptures\": { \"0\": { \"name\": \"punctuation.definition.string.end.languageId\" } },\n      \"name\": \"string.quoted.double.languageId\",\n      \"patterns\": [\n        {\n          \"comment\": \"Quad backslash required to match one literal backslash\",\n          \"match\": \"\\\\\\\\.\",\n          \"name\": \"constant.character.escape.languageId\"\n        }\n      ]\n    }\n  }\n}\n```\n\n\n\n### For more information\n* [Github - TextMate](https://github.com/textmate/textmate)\n* [Github - VSCode TextMate](https://github.com/microsoft/vscode-textmate)\n* [Github - Oniguruma](https://github.com/kkos/oniguruma)\n* [Github - Oniguruma: list of all expressions](https://github.com/kkos/oniguruma/blob/v6.9.8/doc/RE)\n* [Github - VSCode Oniguruma](https://github.com/microsoft/vscode-oniguruma)\n* [Github - Oniguruma Optimizer](https://github.com/slevithan/oniguruma-parser)\n* [Github - Unit testing](https://github.com/PanAeon/vscode-tmgrammar-test)\n* [Github - TmLanguage-Syntax-Highlighter](https://github.com/RedCMD/TmLanguage-Syntax-Highlighter)\n* [Github - Documentation](https://github.com/RedCMD/TmLanguage-Syntax-Highlighter/blob/main/documentation/index.md)\n* [Github - Schema](https://github.com/RedCMD/TmLanguage-Syntax-Highlighter/blob/main/vscode.tmLanguage.schema.json)\n\n\n### Todo\n* Support unicode character insertions `\\u00b0`\n* Finish ctrl+click definitions and references\n* Improve tree-sitter grammar\n* Improve TextMate [documentation](https://github.com/RedCMD/TmLanguage-Syntax-Highlighter/blob/main/documentation/index.md)\n* Finish CallStack viewer\n* Redo TextMate scopeNames [Naming conventions](https://github.com/atom/flight-manual.atom.io/pull/564)\n* Move to LanguageServer\n* Add unit tests\n* Improve TreeSitter Query performance: [Node contains `\u0026fieldName`](https://github.com/tree-sitter/tree-sitter/issues/3956), [Caching or Serializing a `TSQuery`](https://github.com/tree-sitter/tree-sitter/issues/1942)\n* Add [FlameGraph](https://www.brendangregg.com/flamegraphs.html) [schema](https://chromedevtools.github.io/devtools-protocol/tot/Profiler/#type-Profile)\n* Update [CHANGELOG.md](/CHANGELOG.md)\n* Fix TreeSitter minified empty repo name\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredcmd%2Ftmlanguage-syntax-highlighter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredcmd%2Ftmlanguage-syntax-highlighter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredcmd%2Ftmlanguage-syntax-highlighter/lists"}