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": "^(>>|<<|\\|\\|).*" } ] },