Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to include other highlighting files #5

Open
imitablerabbit opened this issue Jul 30, 2017 · 0 comments
Open

Ability to include other highlighting files #5

imitablerabbit opened this issue Jul 30, 2017 · 0 comments
Assignees

Comments

@imitablerabbit
Copy link
Owner

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant