From 6e5ed38b764f9b07ee303b4ce0b5d75c93fc72f6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 30 Jun 2021 15:56:03 +0530 Subject: [PATCH] Add syntax highlighting for mouse_map --- docs/conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index fb3b304eb..916469027 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -347,6 +347,8 @@ class ConfLexer(RegexLexer): (r'(include)(\s+)(.+?)$', bygroups(Comment.Preproc, Whitespace, Name.Namespace)), (r'(map)(\s+)(\S+)(\s+)', bygroups( Keyword.Declaration, Whitespace, String, Whitespace), 'action'), + (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( Keyword.Declaration, Whitespace, String, Whitespace, Literal)), (r'([a-zA-Z_0-9]+)(\s+)', bygroups(