{"id":31647846,"url":"https://github.com/vshaxe/haxe-tmlanguage","last_synced_at":"2025-10-07T06:46:12.649Z","repository":{"id":16853863,"uuid":"80350822","full_name":"vshaxe/haxe-TmLanguage","owner":"vshaxe","description":"TextMate grammars for Haxe and HXML","archived":false,"fork":false,"pushed_at":"2025-07-30T12:14:04.000Z","size":632,"stargazers_count":8,"open_issues_count":19,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-30T14:52:41.849Z","etag":null,"topics":["haxe","hxml","language-grammars","syntax-highlighting"],"latest_commit_sha":null,"homepage":"","language":"Haxe","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/vshaxe.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null}},"created_at":"2017-01-29T14:32:15.000Z","updated_at":"2025-07-30T12:14:09.000Z","dependencies_parsed_at":"2024-04-19T15:27:38.796Z","dependency_job_id":"a7c6e939-849d-42fb-9e71-bd8362da5a6e","html_url":"https://github.com/vshaxe/haxe-TmLanguage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vshaxe/haxe-TmLanguage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vshaxe%2Fhaxe-TmLanguage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vshaxe%2Fhaxe-TmLanguage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vshaxe%2Fhaxe-TmLanguage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vshaxe%2Fhaxe-TmLanguage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vshaxe","download_url":"https://codeload.github.com/vshaxe/haxe-TmLanguage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vshaxe%2Fhaxe-TmLanguage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278734434,"owners_count":26036404,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"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":["haxe","hxml","language-grammars","syntax-highlighting"],"created_at":"2025-10-07T06:46:11.334Z","updated_at":"2025-10-07T06:46:12.644Z","avatar_url":"https://github.com/vshaxe.png","language":"Haxe","funding_links":[],"categories":[],"sub_categories":[],"readme":"# haxe-TmLanguage\n\n[![CI](https://img.shields.io/github/workflow/status/vshaxe/haxe-TmLanguage/CI.svg?logo=github)](https://github.com/vshaxe/haxe-TmLanguage/actions?query=workflow%3ACI)\n\nThis repository contains `.tmLanguage` grammars for Haxe and HXML. They are currently used by the following projects:\n\n- [vshaxe](https://github.com/vshaxe/vshaxe) (Haxe Extension for Visual Studio Code)\n- [linguist](https://github.com/github/linguist) (used for github.com's syntax highlighting)\n- [haxe.org](https://github.com/HaxeFoundation/haxe.org)\n\n## Haxe example\n\n![Haxe highlighting](images/haxe.png)\n\n## HXML example\n\n![hxml highlighting](images/hxml.png)\n\n## Building\n\nFirst install the dependencies:\n\n```\nnpm install\n```\n\n### Conversion\n\nThe `tmLanguage` XML files are converted from their `YAML-tmLanguage` source files like this:\n\n```\nnpx lix run vshaxe-build --target tm-language-conversion\n```\n\n### Tests\n\nThere are some automated tests that can be run like this:\n\n```\nnpx lix run vshaxe-build --target tm-language-tests\n```\n\n`/cases` contains the actual test cases. When running `build.js`, scope-annotated files are generated into the `/generated` directory. During the test step (running `test.js`), the files in `/baselines` are compared with the newly `/generated` ones, and the test fails if they are different.\n\nSo when adding a new test, follow these steps:\n\n- create a new test case in `/cases`\n- verify that the highlighting is ok\n- run `build.js` and copy the new file in `/generated` into `/baselines`\n\n## Workflow\n\nFor convenience, there exists a `tm-language` target, which runs both the `tm-language-conversion` and `tm-language-tests` targets. If you have this project open in VSCode, you can just execute the build task (\u003ckbd\u003eCtrl\u003c/kbd\u003e+\u003ckbd\u003eShift\u003c/kbd\u003e+\u003ckbd\u003eB\u003c/kbd\u003e) to run the `tm-language` target.\n\nVSCode currently needs to be restarted to pick up changes to grammar files. Hence it is helpful to assign an easily accessible shortcut to the `Reload Window` command, for instance \u003ckbd\u003eF6\u003c/kbd\u003e. Sublime Text's [PackageDev](https://github.com/SublimeText/PackageDev) extension may offer a better workflow in this regard.\n\nVSCode has a \"Developer: Inspect Editor Tokens and Scopes\" command that can be very helpful.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvshaxe%2Fhaxe-tmlanguage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvshaxe%2Fhaxe-tmlanguage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvshaxe%2Fhaxe-tmlanguage/lists"}