{"id":21071877,"url":"https://github.com/iron-e/vim-ungrammar","last_synced_at":"2026-04-12T02:36:09.771Z","repository":{"id":107020452,"uuid":"307046139","full_name":"Iron-E/vim-ungrammar","owner":"Iron-E","description":"Ungrammar syntax files for Vim","archived":false,"fork":false,"pushed_at":"2022-05-09T23:57:24.000Z","size":81,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-04T16:48:02.072Z","etag":null,"topics":["gpl","neovim","plugin","rust","rust-analyzer","syntax","syntax-highlighting","ungrammar","vim","vimscript"],"latest_commit_sha":null,"homepage":"","language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Iron-E.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}},"created_at":"2020-10-25T07:28:20.000Z","updated_at":"2022-05-09T23:57:27.000Z","dependencies_parsed_at":"2023-07-22T06:37:37.141Z","dependency_job_id":null,"html_url":"https://github.com/Iron-E/vim-ungrammar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Iron-E/vim-ungrammar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iron-E%2Fvim-ungrammar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iron-E%2Fvim-ungrammar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iron-E%2Fvim-ungrammar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iron-E%2Fvim-ungrammar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Iron-E","download_url":"https://codeload.github.com/Iron-E/vim-ungrammar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Iron-E%2Fvim-ungrammar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31702580,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T21:17:31.016Z","status":"online","status_checked_at":"2026-04-12T02:00:06.763Z","response_time":58,"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":["gpl","neovim","plugin","rust","rust-analyzer","syntax","syntax-highlighting","ungrammar","vim","vimscript"],"created_at":"2024-11-19T18:54:29.645Z","updated_at":"2026-04-12T02:36:09.722Z","avatar_url":"https://github.com/Iron-E.png","language":"Vim script","readme":"# vim-ungrammar\n\n`Vim-ungrammar` is a plugin for Neovim and Vim for the [Ungrammar][ungrammar] filetype which provides:\n\n* [Filetype](./ftdetect/ungram.vim) detection.\n* [`ftplugin`](./ftplugin/ungrammar.vim) setting adjustments.\n\t* Use `let g:ungrammar_formatting = v:false` to turn it off.\n* [Syntax](./syntax/ungrammar.vim) files.\n\n## Preview\n\nHere is a preview of the syntax highlighting, using [nvim-highlite](https://github.com/Iron-E/nvim-highlite) as a theme:\n\n![preview](./media/preview.png \"Preview of Highlight Groups using Iron-E/nvim-highlite\")\n\n## Configuration\n\n### Highlighting Groups\n\nThis plugin defines the following syntax groups:\n\n| Group Name                | Description                      | Example            |\n|:--------------------------|:---------------------------------|:-------------------|\n| `ungramAlternation`       | An alternation on a rule.        | `\\|`               |\n| `ungramConditionalGroup`  | A group which is a conditional.  | `(Foo\\|Bar)?`      |\n| `ungramConditionalString` | A conditional `ungramString`.    | `'for'?`           |\n| `ungramConditional`       | A conditional (1-or-0).          | `?`                |\n| `ungramLabel`             | A label for a token or string.   | `scope:'local'`    |\n| `ungramOperator`          | An operator.                     | `=`                |\n| `ungramOr`                | Alternative for a given position.| `Foo\\|Bar`         |\n| `ungramQuote`             | A quote for a string or token.   | `'`                |\n| `ungramRepeatGroup`       | A group which is repeated.       | `(Foo\\|Bar)*`      |\n| `ungramRepeatString`      | A repeated `ungramString`.       | `'for'*`           |\n| `ungramRepeat`            | 0 or more repetitions.           | `*`                |\n| `ungramRule`              | A rule for a grammar.            | `Foo`              |\n| `ungramString`            | A specific string of characters. | `'for'`            |\n| `ungramToken`             | A token.                         | `'identifier_var'` |\n\n### Markdown Integration\n\nYou can use this plugin seamlessly with [plasticboy/vim-markdown][plasticboy_markdown] provided that the following is part of your `init.vim` configuration:\n\n```vim\nlet g:vim_markdown_fenced_languages = ['ungram=ungrammar']\n```\n\nThen, you can create codeblocks in markdown and it will use the syntax file from this plugin:\n\n````markdown\n\t```ungram\n\t Foo = 'A' | 'B'\n````\n\n## Credits\n\n* [Learn Vimscript The Hard Way](https://learnvimscriptthehardway.stevelosh.com/chapters/45.html) got me started.\n* [plasticboy][plasticboy_markdown] wrote a fantastic markdown plugin with syntax highlighting for fenced code blocks.\n* [rust-analyzer/ungrammar][ungrammar] created the syntax and initial implementation.\n* [tbastos/vim-lua](https://github.com/tbastos/vim-lua) open sourced a clear example of syntax files.\n\n[ungrammar]:https://rust-analyzer.github.io/blog/2020/10/24/introducing-ungrammar.html \"Introducing Ungrammar\"\n[plasticboy_markdown]:https://github.com/plasticboy/vim-markdown \"plasticboy/vim-markdown\"\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firon-e%2Fvim-ungrammar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Firon-e%2Fvim-ungrammar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firon-e%2Fvim-ungrammar/lists"}