Skip to content

Ability to include other highlighting files #5

@imitablerabbit

Description

@imitablerabbit

Perhaps add an include key to the JSON files so that common features like number highlighting, commenting and strings can be loaded in. Hierarchy should be maintained when loading the files.

{
    "includes": [
        "strings.json",
        "comments.json"
    ]
}
Pros Cons
Can split common functionality into different files. This will save some time when creating new syntax files Will take longer to load highlighting as more files have to be read and parsed.
Its clearer what is being loaded into the system Can get messy if different cascading order is needed

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions