-
Notifications
You must be signed in to change notification settings - Fork 108
Include html and liquid grammars #154
base: master
Are you sure you want to change the base?
Conversation
@burodepeper Ah, it ain't working. I just cloned this repo, applied your patch (which I downloaded from https://github.com/atom/language-gfm/pull/154.patch) and rank Guessing this is to be fixed by the language-liquid fixes being made? |
Could you paste that sample code directly so I can test it locally? I took some samples from liquidmarkup.org and had no issues. |
Haha, so it works ; ) |
This is currently blocked on atom/language-todo#43 (comment). We're not sure yet whether we want to accept PRs that add support for languages not under the Atom organization. |
Well Liquid is the templating engine used by GitHub's official SSG, Jekyll, so I must admit I'm surprised that the Atom organization has not created their own Liquid package. |
@50Wliu Understandable, yet still a bummer. (slightly off-topic) I'm not sure what the best place would be to add the following comment (which indirectly relates to the issue you linked to), but I'm always rather reluctant to submit PRs for core packages because they don't get as much "love" as you'd want them to get. I do of course understand the added workload for the Atom devs, and I mean nothing but respect. I would like to see a subset of the core packages (in particular the stand-alonish ones, such as the languages and themes) to be updated outside of the regular update cycle. (more on-topic) Another way to possibly work around this would be to have the liquid grammar inject itself into other grammars, in the same way that |
@burodepeper I have an idea. How about we (not even sure if I should say "we" as I'm light on programming skills besides in shell script) create a new package called |
I would love for this to happen. |
@burodepeper @50Wliu I would want something like that to happen (documented too) since many of the languages depend on each other like the most common html with inline css, js. Another scenario that comes in my mind is that of a template-based languages which add on top of another language, in those cases they must inherit the parent language (or languages) and add on top of it. I would want both of this to be documented to ease the development of language packages as such Now on topic I think the both the approach would do wonders to our .css.liquid files. There must be a way to do something like this (abstract code). Similar to @burodepeper 's approach in language-markdown
So that part of the code can enjoy language-css and autocomplete along with their tokenisation yet being a part of language liquid |
Well if anyone wants a quick solution, before these pull issues are resolved see my new fork of this package |
Hello. I'm a beginner and really don't understand how to install language-liquid into Atom. In Atom I have language-gfm already installed but I see no package called language-liquid. How would I go about getting language-liquid working in Atom? I tried following the instruction at the top from fusion809 #154 (comment) but I have no idea how to apply patches. Totally lost. |
See #145 for a discussion on this issue. The discussion focuses on liquid, but I noticed that html was missing so I included that too.
I've used the same approach as I have for
language-markdown
. I haven't found a convenient way to write specs for included grammars, but I think it's acceptable to defer this to the corresponding packages themselves.