Skip to content

Syntax highlighting design #28

Description

@cgay

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:

  1. A rule to match any valid header (Module:, Synopsis:, etc) down to the next blank line.
  2. A rule to match from ^define to the following ^end.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions