Refactor the mapping docs

This commit is contained in:
Kovid Goyal
2023-12-03 12:25:15 +05:30
parent 9a0e84293f
commit f1fc2126bc
5 changed files with 273 additions and 76 deletions

View File

@@ -351,8 +351,8 @@ class ConfLexer(RegexLexer): # type: ignore
(r'\s+$', Whitespace),
(r'\s+', Whitespace),
(r'(include)(\s+)(.+?)$', bygroups(Comment.Preproc, Whitespace, Name.Namespace)),
(r'(map)(\s+)(\S+)(\s+)', bygroups(
Keyword.Declaration, Whitespace, String, Whitespace), 'action'),
(r'(map)(\s+)', bygroups(
Keyword.Declaration, Whitespace), 'args'),
(r'(mouse_map)(\s+)(\S+)(\s+)(\S+)(\s+)(\S+)(\s+)', bygroups(
Keyword.Declaration, Whitespace, String, Whitespace, Name.Variable, Whitespace, String, Whitespace), 'action'),
(r'(symbol_map)(\s+)(\S+)(\s+)(.+?)$', bygroups(