{"id":51095044,"url":"https://github.com/tectiv3/vue.tmbundle","last_synced_at":"2026-06-24T05:33:01.143Z","repository":{"id":363990438,"uuid":"1265858890","full_name":"tectiv3/vue.tmbundle","owner":"tectiv3","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-11T06:53:37.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-11T08:23:12.819Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/tectiv3.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-11T06:19:36.000Z","updated_at":"2026-06-11T06:53:41.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tectiv3/vue.tmbundle","commit_stats":null,"previous_names":["tectiv3/vue.tmbundle"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/tectiv3/vue.tmbundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Fvue.tmbundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Fvue.tmbundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Fvue.tmbundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Fvue.tmbundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tectiv3","download_url":"https://codeload.github.com/tectiv3/vue.tmbundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tectiv3%2Fvue.tmbundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34719097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2026-06-24T05:32:59.024Z","updated_at":"2026-06-24T05:33:01.130Z","avatar_url":"https://github.com/tectiv3.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue.tmbundle\n\nTextMate 2 bundle for Vue single-file components (`*.vue`, scope `text.html.vue`).\n\nThe grammar derives from [vuejs/vue-syntax-highlight](https://github.com/vuejs/vue-syntax-highlight)\n(Sublime Text). That project [declined to carry TextMate support](https://github.com/vuejs/vue-syntax-highlight/pull/197)\nand recommended maintaining it in a separate repository — this is that repository.\n\n## Fixes over the original grammar\n\n- `\u003cscript lang=\"ts\"\u003e` rule was dead (missing `begin`/`end` patterns); it now matches and\n  falls back to `source.js` when no TypeScript grammar is installed.\n- Slot shorthand (`#title`) and dynamic directive arguments (`:[prop]`, `@[event]`) are\n  recognized as directives.\n- Valueless directives (`v-else`, `#default`) are scoped as attribute names.\n- Corrected backreferences in the `lang=` detection lookaheads (`\\1` pointed at the tag\n  bracket instead of the quote character).\n- Folding preferences: tag-based folding for templates, plus brace/bracket/comment\n  folding inside `\u003cscript\u003e` sections. Without these, the HTML bundle's tag-only folding\n  setting applies to every line of a `.vue` file, so functions inside scripts never fold.\n\n## Install\n\n```sh\nmkdir -p ~/Library/Application\\ Support/TextMate/Bundles\ncd ~/Library/Application\\ Support/TextMate/Bundles\ngit clone https://github.com/tectiv3/vue.tmbundle.git Vue.tmbundle\n```\n\nThen reload bundles in TextMate (or relaunch).\n\n## Known issue: `??` breaks highlighting with the stock JavaScript bundle\n\nThis grammar embeds `source.js` for `\u003cscript\u003e` sections and `{{ … }}` interpolations.\nThe stock [textmate/javascript.tmbundle](https://github.com/textmate/javascript.tmbundle)\ngrammar treats every `?` as the start of a ternary expression and waits for a `:` to close\nit, so nullish coalescing (`??`) opens a scope that never closes and corrupts highlighting\nfor the rest of the file.\n\nUntil that is fixed upstream, edit the JavaScript grammar's ternary rule\n(Bundles → Select Bundle Item… → JavaScript / Syntaxes):\n\n- change `begin` from `\\?` to `(?\u003c!\\?)\\?(?![?.])`\n- add operator rules ahead of it for `\\?\\?` (`keyword.operator.logical.js`) and\n  `\\?\\.` (`keyword.operator.accessor.js`)\n\n## License\n\nMIT — see [LICENSE](LICENSE). Original grammar © Evan You (vue-syntax-highlight).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftectiv3%2Fvue.tmbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftectiv3%2Fvue.tmbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftectiv3%2Fvue.tmbundle/lists"}