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

Add basic highlighting for linkage lines #17

Merged
merged 1 commit into from
Feb 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion python/generate_syntax_highlightining.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ def match_all_variants(token_names):
"match": f"\\b({dollar_keywords})\\b",
}
],
}
},
# Linkage lines.
# TODO: use a different colour for this class of lines.
{"name": "support.class.linkage.atf",
"match": "^(>>|<<|\\|\\|).*"},
]

strings = {}
Expand Down
4 changes: 4 additions & 0 deletions syntaxes/atf.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@
"match": "\\b(most|least|about|several|some|rest|of|start|beginning|middle|end|columns|line|lines|case|cases|surface|space|blank|broken|effaced|illegible|missing|traces|ruling|single|double|triple|at|Most|Least|About|Several|Some|Rest|Of|Start|Beginning|Middle|End|Columns|Line|Lines|Case|Cases|Surface|Space|Blank|Broken|Effaced|Illegible|Missing|Traces|Ruling|Single|Double|Triple|At)\\b"
}
]
},
{
"name": "support.class.linkage.atf",
"match": "^(>>|<<|\\|\\|).*"
}
]
},
Expand Down