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 0https://github.com/raimon49/requirements.txt.vim/tree/master/examples/requirements.txt