-
-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebVTT syntax highlighting #707
Comments
Could you give an example of a snippet that can be highlighted with that syntax? I read it and it's a little bit complex, I think we can do that with less complex RegEx. |
Thanks for looking into it! The WebVTT specification has lots of example snippets. Is that what you were looking for? |
dschuessler
added a commit
to dschuessler/chroma
that referenced
this issue
Dec 29, 2024
alecthomas
pushed a commit
that referenced
this issue
Dec 29, 2024
DennisRasey
pushed a commit
to DennisRasey/forgejo
that referenced
this issue
Jan 6, 2025
…6477) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma) | require | minor | `v2.14.0` -> `v2.15.0` | --- ### Release Notes <details> <summary>alecthomas/chroma (github.com/alecthomas/chroma/v2)</summary> ### [`v2.15.0`](https://github.com/alecthomas/chroma/releases/tag/v2.15.0) [Compare Source](alecthomas/chroma@v2.14.0...v2.15.0) #### What's Changed - AQL: Add builtin functions introduced in v3.12 by [@​Simran-B](https://github.com/Simran-B) in alecthomas/chroma#968 - chore(styles): add evergarden inspired style by [@​comfysage](https://github.com/comfysage) in alecthomas/chroma#970 - chore(deps): update dependency svu to v2 by [@​renovate](https://github.com/renovate) in alecthomas/chroma#971 - chore(deps): update dependency watchexec to v2 by [@​renovate](https://github.com/renovate) in alecthomas/chroma#962 - chore(deps): update all non-major dependencies by [@​renovate](https://github.com/renovate) in alecthomas/chroma#955 - styles: Fix Gleam alias by [@​jmooring](https://github.com/jmooring) in alecthomas/chroma#973 - chore(deps): update all non-major dependencies by [@​renovate](https://github.com/renovate) in alecthomas/chroma#974 - chore(deps): update dependency python3 to v3.12.3 by [@​renovate](https://github.com/renovate) in alecthomas/chroma#976 - added the nordic theme via chroma/styles/nordic.xml by [@​avih7531](https://github.com/avih7531) in alecthomas/chroma#977 - Update the Materialize lexer by [@​arusahni](https://github.com/arusahni) in alecthomas/chroma#978 - feat(lexers/hare): add done keyword by [@​wackbyte](https://github.com/wackbyte) in alecthomas/chroma#979 - pygments2chroma: escape regex.words by [@​oliverpool](https://github.com/oliverpool) in alecthomas/chroma#982 - chore(deps): update all non-major dependencies by [@​renovate](https://github.com/renovate) in alecthomas/chroma#981 - Add JSONata Lexer by [@​DevDimov](https://github.com/DevDimov) in alecthomas/chroma#983 - Go lexer: single line comment without consuming endline, disable EnsureNL by [@​msorc](https://github.com/msorc) in alecthomas/chroma#984 - Update the Materialize lexer by [@​arusahni](https://github.com/arusahni) in alecthomas/chroma#987 - chore(deps): update all non-major dependencies by [@​renovate](https://github.com/renovate) in alecthomas/chroma#985 - Add Gleam to README by [@​Nicd](https://github.com/Nicd) in alecthomas/chroma#990 - Port Minecraft lexers from Pygments by [@​kofuk](https://github.com/kofuk) in alecthomas/chroma#992 - Don't output extra whitespace in YAML multiline by [@​Gusted](https://github.com/Gusted) in alecthomas/chroma#993 - chore(deps): update all non-major dependencies by [@​renovate](https://github.com/renovate) in alecthomas/chroma#991 - add beef syntax and tests by [@​Booklordofthedings](https://github.com/Booklordofthedings) in alecthomas/chroma#995 - Update GitHub light color palette by [@​konradreiche](https://github.com/konradreiche) in alecthomas/chroma#998 - chore(deps): update module github.com/alecthomas/kong to v1 by [@​renovate](https://github.com/renovate) in alecthomas/chroma#999 - Update the Materialize lexer by [@​arusahni](https://github.com/arusahni) in alecthomas/chroma#1001 - Update TypeScript lexer to allow nested generics by [@​fredrare](https://github.com/fredrare) in alecthomas/chroma#1002 - Pager friendly terminal formatting by [@​walles](https://github.com/walles) in alecthomas/chroma#1006 - chore(deps): update all non-major dependencies by [@​renovate](https://github.com/renovate) in alecthomas/chroma#997 - Add Typst Lexer by [@​oliverpool](https://github.com/oliverpool) in alecthomas/chroma#1007 - Add Jsonnet Lexer by [@​jolheiser](https://github.com/jolheiser) in alecthomas/chroma#1011 - fix: add underscore parsing in numbers for haskell by [@​Gusted](https://github.com/Gusted) in alecthomas/chroma#1020 - Add CSV lexer by [@​walles](https://github.com/walles) in alecthomas/chroma#1005 - fix(typescript): highlight string literal type parameters by [@​SKalt](https://github.com/SKalt) in alecthomas/chroma#1010 - add any as a builtin type for go by [@​quartercastle](https://github.com/quartercastle) in alecthomas/chroma#1021 - chore(deps): update all non-major dependencies by [@​renovate](https://github.com/renovate) in alecthomas/chroma#1013 - Remove whitespace tokenizing rule in markdown lexer by [@​cloudchamb3r](https://github.com/cloudchamb3r) in alecthomas/chroma#1008 - feat(JSON): support `.jsonc` extension by [@​CarterLi](https://github.com/CarterLi) in alecthomas/chroma#1022 - Add Eclipse ATL language (https://eclipse.dev/atl/) by [@​dwagelaar](https://github.com/dwagelaar) in alecthomas/chroma#1024 - Import NSIS Lexer from Pygments by [@​JakobDev](https://github.com/JakobDev) in alecthomas/chroma#1026 - chore(deps): update module github.com/alecthomas/kong to v1.5.1 by [@​renovate](https://github.com/renovate) in alecthomas/chroma#1025 - fix(nix): nix lexor missing '=' operator by [@​FlyingStitchman](https://github.com/FlyingStitchman) in alecthomas/chroma#1031 - Add WebVTT lexer ([#​707](alecthomas/chroma#707)) by [@​dschuessler](https://github.com/dschuessler) in alecthomas/chroma#1032 #### New Contributors - [@​comfysage](https://github.com/comfysage) made their first contribution in alecthomas/chroma#970 - [@​avih7531](https://github.com/avih7531) made their first contribution in alecthomas/chroma#977 - [@​wackbyte](https://github.com/wackbyte) made their first contribution in alecthomas/chroma#979 - [@​oliverpool](https://github.com/oliverpool) made their first contribution in alecthomas/chroma#982 - [@​DevDimov](https://github.com/DevDimov) made their first contribution in alecthomas/chroma#983 - [@​msorc](https://github.com/msorc) made their first contribution in alecthomas/chroma#984 - [@​Nicd](https://github.com/Nicd) made their first contribution in alecthomas/chroma#990 - [@​Booklordofthedings](https://github.com/Booklordofthedings) made their first contribution in alecthomas/chroma#995 - [@​konradreiche](https://github.com/konradreiche) made their first contribution in alecthomas/chroma#998 - [@​fredrare](https://github.com/fredrare) made their first contribution in alecthomas/chroma#1002 - [@​SKalt](https://github.com/SKalt) made their first contribution in alecthomas/chroma#1010 - [@​quartercastle](https://github.com/quartercastle) made their first contribution in alecthomas/chroma#1021 - [@​cloudchamb3r](https://github.com/cloudchamb3r) made their first contribution in alecthomas/chroma#1008 - [@​CarterLi](https://github.com/CarterLi) made their first contribution in alecthomas/chroma#1022 - [@​dwagelaar](https://github.com/dwagelaar) made their first contribution in alecthomas/chroma#1024 - [@​FlyingStitchman](https://github.com/FlyingStitchman) made their first contribution in alecthomas/chroma#1031 - [@​dschuessler](https://github.com/dschuessler) made their first contribution in alecthomas/chroma#1032 **Full Changelog**: alecthomas/chroma@v2.14.0...v2.15.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "* 0-3 * * *" (UTC), Automerge - "* 0-3 * * *" (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS45MC4wIiwidXBkYXRlZEluVmVyIjoiMzkuOTAuMCIsInRhcmdldEJyYW5jaCI6ImZvcmdlam8iLCJsYWJlbHMiOlsiZGVwZW5kZW5jeS11cGdyYWRlIiwidGVzdC9ub3QtbmVlZGVkIl19--> Co-authored-by: Gusted <[email protected]> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6477 Reviewed-by: Gusted <[email protected]> Co-authored-by: Renovate Bot <[email protected]> Co-committed-by: Renovate Bot <[email protected]>
DennisRasey
pushed a commit
to DennisRasey/forgejo
that referenced
this issue
Jan 15, 2025
…jo) (#6553) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [github.com/alecthomas/chroma/v2](https://github.com/alecthomas/chroma) | require | minor | `v2.14.0` -> `v2.15.0` | --- ### Release Notes <details> <summary>alecthomas/chroma (github.com/alecthomas/chroma/v2)</summary> ### [`v2.15.0`](https://github.com/alecthomas/chroma/releases/tag/v2.15.0) [Compare Source](alecthomas/chroma@v2.14.0...v2.15.0) #### What's Changed - AQL: Add builtin functions introduced in v3.12 by [@​Simran-B](https://github.com/Simran-B) in alecthomas/chroma#968 - chore(styles): add evergarden inspired style by [@​comfysage](https://github.com/comfysage) in alecthomas/chroma#970 - chore(deps): update dependency svu to v2 by [@​renovate](https://github.com/renovate) in alecthomas/chroma#971 - chore(deps): update dependency watchexec to v2 by [@​renovate](https://github.com/renovate) in alecthomas/chroma#962 - chore(deps): update all non-major dependencies by [@​renovate](https://github.com/renovate) in alecthomas/chroma#955 - styles: Fix Gleam alias by [@​jmooring](https://github.com/jmooring) in alecthomas/chroma#973 - chore(deps): update all non-major dependencies by [@​renovate](https://github.com/renovate) in alecthomas/chroma#974 - chore(deps): update dependency python3 to v3.12.3 by [@​renovate](https://github.com/renovate) in alecthomas/chroma#976 - added the nordic theme via chroma/styles/nordic.xml by [@​avih7531](https://github.com/avih7531) in alecthomas/chroma#977 - Update the Materialize lexer by [@​arusahni](https://github.com/arusahni) in alecthomas/chroma#978 - feat(lexers/hare): add done keyword by [@​wackbyte](https://github.com/wackbyte) in alecthomas/chroma#979 - pygments2chroma: escape regex.words by [@​oliverpool](https://github.com/oliverpool) in alecthomas/chroma#982 - chore(deps): update all non-major dependencies by [@​renovate](https://github.com/renovate) in alecthomas/chroma#981 - Add JSONata Lexer by [@​DevDimov](https://github.com/DevDimov) in alecthomas/chroma#983 - Go lexer: single line comment without consuming endline, disable EnsureNL by [@​msorc](https://github.com/msorc) in alecthomas/chroma#984 - Update the Materialize lexer by [@​arusahni](https://github.com/arusahni) in alecthomas/chroma#987 - chore(deps): update all non-major dependencies by [@​renovate](https://github.com/renovate) in alecthomas/chroma#985 - Add Gleam to README by [@​Nicd](https://github.com/Nicd) in alecthomas/chroma#990 - Port Minecraft lexers from Pygments by [@​kofuk](https://github.com/kofuk) in alecthomas/chroma#992 - Don't output extra whitespace in YAML multiline by [@​Gusted](https://github.com/Gusted) in alecthomas/chroma#993 - chore(deps): update all non-major dependencies by [@​renovate](https://github.com/renovate) in alecthomas/chroma#991 - add beef syntax and tests by [@​Booklordofthedings](https://github.com/Booklordofthedings) in alecthomas/chroma#995 - Update GitHub light color palette by [@​konradreiche](https://github.com/konradreiche) in alecthomas/chroma#998 - chore(deps): update module github.com/alecthomas/kong to v1 by [@​renovate](https://github.com/renovate) in alecthomas/chroma#999 - Update the Materialize lexer by [@​arusahni](https://github.com/arusahni) in alecthomas/chroma#1001 - Update TypeScript lexer to allow nested generics by [@​fredrare](https://github.com/fredrare) in alecthomas/chroma#1002 - Pager friendly terminal formatting by [@​walles](https://github.com/walles) in alecthomas/chroma#1006 - chore(deps): update all non-major dependencies by [@​renovate](https://github.com/renovate) in alecthomas/chroma#997 - Add Typst Lexer by [@​oliverpool](https://github.com/oliverpool) in alecthomas/chroma#1007 - Add Jsonnet Lexer by [@​jolheiser](https://github.com/jolheiser) in alecthomas/chroma#1011 - fix: add underscore parsing in numbers for haskell by [@​Gusted](https://github.com/Gusted) in alecthomas/chroma#1020 - Add CSV lexer by [@​walles](https://github.com/walles) in alecthomas/chroma#1005 - fix(typescript): highlight string literal type parameters by [@​SKalt](https://github.com/SKalt) in alecthomas/chroma#1010 - add any as a builtin type for go by [@​quartercastle](https://github.com/quartercastle) in alecthomas/chroma#1021 - chore(deps): update all non-major dependencies by [@​renovate](https://github.com/renovate) in alecthomas/chroma#1013 - Remove whitespace tokenizing rule in markdown lexer by [@​cloudchamb3r](https://github.com/cloudchamb3r) in alecthomas/chroma#1008 - feat(JSON): support `.jsonc` extension by [@​CarterLi](https://github.com/CarterLi) in alecthomas/chroma#1022 - Add Eclipse ATL language (https://eclipse.dev/atl/) by [@​dwagelaar](https://github.com/dwagelaar) in alecthomas/chroma#1024 - Import NSIS Lexer from Pygments by [@​JakobDev](https://github.com/JakobDev) in alecthomas/chroma#1026 - chore(deps): update module github.com/alecthomas/kong to v1.5.1 by [@​renovate](https://github.com/renovate) in alecthomas/chroma#1025 - fix(nix): nix lexor missing '=' operator by [@​FlyingStitchman](https://github.com/FlyingStitchman) in alecthomas/chroma#1031 - Add WebVTT lexer ([#​707](alecthomas/chroma#707)) by [@​dschuessler](https://github.com/dschuessler) in alecthomas/chroma#1032 #### New Contributors - [@​comfysage](https://github.com/comfysage) made their first contribution in alecthomas/chroma#970 - [@​avih7531](https://github.com/avih7531) made their first contribution in alecthomas/chroma#977 - [@​wackbyte](https://github.com/wackbyte) made their first contribution in alecthomas/chroma#979 - [@​oliverpool](https://github.com/oliverpool) made their first contribution in alecthomas/chroma#982 - [@​DevDimov](https://github.com/DevDimov) made their first contribution in alecthomas/chroma#983 - [@​msorc](https://github.com/msorc) made their first contribution in alecthomas/chroma#984 - [@​Nicd](https://github.com/Nicd) made their first contribution in alecthomas/chroma#990 - [@​Booklordofthedings](https://github.com/Booklordofthedings) made their first contribution in alecthomas/chroma#995 - [@​konradreiche](https://github.com/konradreiche) made their first contribution in alecthomas/chroma#998 - [@​fredrare](https://github.com/fredrare) made their first contribution in alecthomas/chroma#1002 - [@​SKalt](https://github.com/SKalt) made their first contribution in alecthomas/chroma#1010 - [@​quartercastle](https://github.com/quartercastle) made their first contribution in alecthomas/chroma#1021 - [@​cloudchamb3r](https://github.com/cloudchamb3r) made their first contribution in alecthomas/chroma#1008 - [@​CarterLi](https://github.com/CarterLi) made their first contribution in alecthomas/chroma#1022 - [@​dwagelaar](https://github.com/dwagelaar) made their first contribution in alecthomas/chroma#1024 - [@​FlyingStitchman](https://github.com/FlyingStitchman) made their first contribution in alecthomas/chroma#1031 - [@​dschuessler](https://github.com/dschuessler) made their first contribution in alecthomas/chroma#1032 **Full Changelog**: alecthomas/chroma@v2.14.0...v2.15.0 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - "* 0-3 * * *" (UTC). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMDYuMCIsInVwZGF0ZWRJblZlciI6IjM5LjEwNi4wIiwidGFyZ2V0QnJhbmNoIjoidjEwLjAvZm9yZ2VqbyIsImxhYmVscyI6WyJkZXBlbmRlbmN5LXVwZ3JhZGUiLCJ0ZXN0L25vdC1uZWVkZWQiXX0=--> Co-authored-by: viceice <[email protected]> Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6553 Reviewed-by: Michael Kriese <[email protected]> Co-authored-by: Renovate Bot <[email protected]> Co-committed-by: Renovate Bot <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What problem does this feature solve?
Having WebVTT syntax highlighting in Hugo
What feature do you propose?
WebVTT syntax highlighting
Here is a textmate syntax which might be useful: https://github.com/pepri/subtitles-editor/blob/master/syntaxes/subtitles.tmLanguage.json
The text was updated successfully, but these errors were encountered: