{"id":17382951,"url":"https://github.com/redcmd/json-embedded-languages","last_synced_at":"2025-08-03T01:33:01.688Z","repository":{"id":254972279,"uuid":"848066339","full_name":"RedCMD/JSON-Embedded-Languages","owner":"RedCMD","description":"VSCode Extension: Syntax highlighting ShellScript inside package.json \"scripts\"","archived":false,"fork":false,"pushed_at":"2024-12-01T01:40:09.000Z","size":237,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-01T02:28:46.398Z","etag":null,"topics":["package-json","shell-script","textmate-grammar"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=RedCMD.json-embedded-languages","language":null,"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.md","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":"2024-08-27T04:17:35.000Z","updated_at":"2024-12-01T01:40:13.000Z","dependencies_parsed_at":"2024-12-01T02:25:22.569Z","dependency_job_id":"c1bbda6d-27ef-4ec4-9e5b-46648c500369","html_url":"https://github.com/RedCMD/JSON-Embedded-Languages","commit_stats":null,"previous_names":["redcmd/json-embedded-languages"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedCMD%2FJSON-Embedded-Languages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedCMD%2FJSON-Embedded-Languages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedCMD%2FJSON-Embedded-Languages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RedCMD%2FJSON-Embedded-Languages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RedCMD","download_url":"https://codeload.github.com/RedCMD/JSON-Embedded-Languages/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228516385,"owners_count":17932442,"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":["package-json","shell-script","textmate-grammar"],"created_at":"2024-10-16T07:39:59.165Z","updated_at":"2025-08-03T01:33:01.653Z","avatar_url":"https://github.com/RedCMD.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON Embedded Languages\nSyntax Highlighting for embedded languages within `JSON` and `JSONC` files.  \nIt does so by overriding the default `JSON` and `JSONC` languages and assigning a scopeName to each object with the form `.meta.embedded.objectkey.`.  \nThen using multiple injection grammars that target those scopeNames and inject specific languages into it.  \n\n\n## Features\n* ShellScript within `\"scripts\"` for `package.json` (`JSON`)  \n![Example `package.json/scripts`](images/Example-scripts.png)\n\n* [when-clause-contexts](https://code.visualstudio.com/api/references/when-clause-contexts) within `\"when\"` for `package.json` (`JSON`)  \n![Example `package.json/when`](images/Example-when.png)\n\n* JSON escaped JavaScript Regular Expressions within `\"wordPattern\"`, `\"folding\"`, `\"onEnterRules\"` and `\"indentationRules\"` for `language-configuration.json` (`JSONC`)  \n![Example `language-configuration.json`](images/Example-language-configuration.png)\n\n* Snippets, Regex and Markdown within `\"defaultSnippets\"`, `\"pattern\"` and `\"markdownDescription\"` for `.schema.json` (`JSON`)  \n  Recommend the [Snippets Snippets](https://marketplace.visualstudio.com/items?itemName=RedCMD.snippets-snippets) extension  \n![Example `schema.json`](images/Example-schema.png)\n\n\n## Known Issues\n\nThis extension targets every `JSON` and `JSONC` file, not just `package.json`.  \nThere will be false positives and false negatives.  \nPlease report any you come across.  \n\nVSCode TextMate injections are rather slow.  \nIt may take longer for documents to fully syntax highlight.  \nThe `regexp` `\"injectionSelector\"` is almost 10,000 characters long.  \n\n\n## For more information\n\n* The GitHub [Issue](https://github.com/microsoft/vscode/issues/224581) that spawned the idea\n* [Repository](https://github.com/RedCMD/JSON-Embedded-Languages)\n* [Marketplace](https://marketplace.visualstudio.com/items?itemName=RedCMD.json-embedded-languages)\n\n\n## TODO:\n* `globs`/`\"filenamePatterns\"`\n* Improve performance\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredcmd%2Fjson-embedded-languages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredcmd%2Fjson-embedded-languages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredcmd%2Fjson-embedded-languages/lists"}