Skip to content

Add compiled grammar to top level for use in linguist#260

Merged
henrymercer merged 2 commits intogithub:masterfrom
alexet:tm-test
Mar 4, 2020
Merged

Add compiled grammar to top level for use in linguist#260
henrymercer merged 2 commits intogithub:masterfrom
alexet:tm-test

Conversation

@alexet
Copy link
Copy Markdown

@alexet alexet commented Mar 4, 2020

Linguist needs a texmate grammar in a repository. The grammar is just a slightly modified version of the vscode one (the markdown grammar is different and doesn't have the same subrules). It seems easier to put it here where in future we can make it track the vscode grammar changes.

I plan to add a case to the action to fail if running the script changes the file but we want to get linguist support done soon.

Comment thread syntaxes/README.md Outdated
@alexet
Copy link
Copy Markdown
Author

alexet commented Mar 4, 2020

I have accepted your suggestion.

@jcreedcmu
Copy link
Copy Markdown
Contributor

Pity we can't expect people have jq, but the perl script is fine by me for now.

jcreedcmu
jcreedcmu previously approved these changes Mar 4, 2020
@jcreedcmu
Copy link
Copy Markdown
Contributor

(with jq 1.6, one could do

jq 'walk(if type == "array" then map(select((type == "object" and has("include") and (.include | test("^text.html.markdown#" )) ) | not)) else . end)' /tmp/repo.json

to remove all objects with "include": "text.html.markdown#...")

alexet and others added 2 commits March 4, 2020 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants