From f80bf351bd869a317eea714f44675ebfb363f362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Wed, 17 Feb 2021 12:04:20 +0000 Subject: [PATCH] Add basic highlighting for linkage lines --- python/generate_syntax_highlightining.py | 6 +++++- syntaxes/atf.tmLanguage.json | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/python/generate_syntax_highlightining.py b/python/generate_syntax_highlightining.py index fa2433f..0f8e620 100755 --- a/python/generate_syntax_highlightining.py +++ b/python/generate_syntax_highlightining.py @@ -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 = {} diff --git a/syntaxes/atf.tmLanguage.json b/syntaxes/atf.tmLanguage.json index 48b2c29..7447b8c 100644 --- a/syntaxes/atf.tmLanguage.json +++ b/syntaxes/atf.tmLanguage.json @@ -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": "^(>>|<<|\\|\\|).*" } ] },