Skip to content
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

Support for extends in syntaxes #2184

Open
azuledu opened this issue May 6, 2022 · 1 comment
Open

Support for extends in syntaxes #2184

azuledu opened this issue May 6, 2022 · 1 comment
Labels
feature-request New feature or request syntect-features-required Blocked by lack of support in syntect

Comments

@azuledu
Copy link

azuledu commented May 6, 2022

¿Is it possible to extend an existing syntax?

I tried to extend Markdown syntax creating a file inside ~/.config/bat/syntaxes with the content:

%YAML 1.2
---
name: MyMarkdown
file_extensions: [md]
scope: text.html.markdown

extends: Packages/Markdown/Markdown.sublime-syntax

contexts:
  main:....

but it seems that the extends tag is not working.
¿Any clue?

Thanks.

@azuledu azuledu added the question Further information is requested label May 6, 2022
@azuledu azuledu changed the title How to extend an existing syntax? How to extend an existing syntax May 6, 2022
@keith-hall
Copy link
Collaborator

Hi, unfortunately this is currently not supported upstream in the syntax highlighting library bat uses: trishume/syntect#323

@Enselic Enselic added feature-request New feature or request and removed question Further information is requested labels May 13, 2022
@Enselic Enselic changed the title How to extend an existing syntax Support for extends in syntaxes May 13, 2022
@keith-hall keith-hall added the syntect-features-required Blocked by lack of support in syntect label May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request syntect-features-required Blocked by lack of support in syntect
Projects
None yet
Development

No branches or pull requests

3 participants