-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Cannot set --map-syntax .resource:.robot
#1386
Comments
Thank you for reporting this. The Robot syntax file apparently has a trailing dot ( name: Robot Framework syntax highlighting.
file_extensions:
- robot None of the other syntaxes have this. So the correct way would be:
In 51463a4, I have changed the name to "Robot Framework", so in the future, it would be:
If
I think it could be explained better in the help text for
Great idea! 👍 This should be tracked in a separate ticket. Tasks:
|
this issue is about syntax highlighting TESTS, not general support for a language |
FYI as of
That would be a good place too! However, from my use perspective: I will only use It's not that far fetched for
|
Works for me with bat 0.17:
Sounds good 👍 |
I am sorry to make your life so complicated... but I don't see anything:
Did you, by accident (or my miscommunication), create a weird rule? |
My mistake. I thought the files are named
The left-hand side of the colon is a glob pattern. |
Oh, I see ... Then, why is "robot" highlighting It works btw, just add that fix on master 😀 |
You mean.. in the
The Sublime syntaxes have a very limited pattern format. If they specify "robot", that could either mean files names "robot" OR files with extension "robot". But that's not ideal. For Makefiles, there is a "Makefile" pattern. But we don't really want to highlight
This should really be documented somewhere. Ideally, in the |
I think that's "too verbose" for the Can be added in a |
This has now been released in bat v0.18. |
What version of
bat
are you using?[paste the output of
bat --version
here]Describe the bug you encountered:
While .robot syntax highlighting is supported (#343, regardless of what #1213 is saying), it seems that .resource files are not included.
So I am trying to do that manually for myself. None of:
--map-syntax .resource:robot
--map-syntax .resource:.robot
--map-syntax .resource:Robot Framework syntax highlighting
(bat -L
)--map-syntax .resource:"Robot Framework syntax highlighting"
(bat -L
)works.
What did you expect to happen instead?
--map-syntax .resource:.robot
works--map-syntax .resource:Robot Framework syntax highlighting
quoted-or-not works (bat -L
)Or specify at the beginning/end of
bat -L
how is it supposed to be done and/or an example (feel free to use this one; I feel that you may not want to touch your git-submoduled repo).Also, use your own machinery to page
bat -L
: It's already too big to be displayed in one screenful.How did you install
bat
?github-latest deprecated script
[paste the output of
info.sh
here]The text was updated successfully, but these errors were encountered: