Hey, I've been reading through the TextMate docs and playing around with dylan.tmLanguage.json and I wonder if it's possible to impose a little bit of structure on the grammar....
What if we separate the grammar into (at least) three top level rules:
- A rule to match any valid header (
Module:, Synopsis:, etc) down to the next blank line.
- A rule to match from
^define to the following ^end.
- A rule to match
define constant|variable.
Each rule would contain subrules ("patterns") as appropriate. We might find that we need separate top-level rules for define macro and define class; I don't know yet.
I will play around with this idea and update this bug as I go.
Hey, I've been reading through the TextMate docs and playing around with dylan.tmLanguage.json and I wonder if it's possible to impose a little bit of structure on the grammar....
What if we separate the grammar into (at least) three top level rules:
Module:,Synopsis:, etc) down to the next blank line.^defineto the following^end.define constant|variable.Each rule would contain subrules ("patterns") as appropriate. We might find that we need separate top-level rules for
define macroanddefine class; I don't know yet.I will play around with this idea and update this bug as I go.