-
-
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
Add Requirementstxt.sublime-syntax and its test. #2361
Conversation
Thank you very much. We used to have |
Fixed. |
Please also read the part about adding the upstream syntax as a submodule: https://github.com/sharkdp/bat/blob/master/doc/assets.md#adding-new-builtin-languages-for-syntax-highlighting And remove |
OK, removed. |
But we still don't have the upstream syntax as a submodule, right? |
You mean I should create a new github repo and create a git submodule in this repo, right? |
Oh, I didn't realize you created this syntax. I saw the link to https://github.com/raimon49/requirements.txt.vim/tree/master/examples/requirements.txt and didn't realize it was a vim syntax, not a Sublime Text syntax. In this case, I'm okay with integrating it into |
No serious 😄
Why not create a subfolder for every |
We do have folders for all submodules. But for some of them we need a manually converted .sublime-syntax file, because they only support .tmLanguage. If the syntax has a .sublime-syntax in the module itself, there is no additional file. |
I see. If a sublime-syntax has additional file, It will create a subfolder. So should we create a folder for them? $ ls assets/syntaxes/02_Extra/syntax_test_*
assets/syntaxes/02_Extra/syntax_test_csv.csv
assets/syntaxes/02_Extra/syntax_test_man.man
assets/syntaxes/02_Extra/syntax_test_tsv.tsv |
Sorry, I wasn't aware that we had some syntax tests in Thank you very much. |
❯ syntest assets/syntaxes/02_Extra/syntax_test_requirements.txt assets/syntaxes/02_Extra/Requirementstxt.sublime-syntax loading syntax definitions from assets/syntaxes/02_Extra/Requirementstxt.sublime-syntax Testing file assets/syntaxes/02_Extra/syntax_test_requirements.txt The test file references syntax definition file: Requirementstxt.sublime-syntax Ok(Success(850)) exiting with code 0
https://github.com/raimon49/requirements.txt.vim/tree/master/examples/requirements.txt