Skip to content

Commit 11793af

Browse files
committed
fix space
1 parent 72d7512 commit 11793af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/utils/pygments/mlir_lexer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ class MlirLexer(RegexLexer):
6464
(r"\b(ceildiv|floordiv|mod|symbol)\b", Name.Builtin),
6565
# operation definitions with assignment: %... = op.name
6666
(
67-
r"^\s*(%[\%_A-Za-z0-9\:\,\s]+)\s*(=)\s*([A-Za-z0-9_\.\$\-]+)\b",
68-
bygroups(Name.Variable, Operator, Name.Function),
67+
r"^(\s*)(%[\%_A-Za-z0-9\:\,\s]+)(\s*=\s*)([A-Za-z0-9_\.\$\-]+)\b",
68+
bygroups(Text, Name.Variable, Operator, Name.Function),
6969
),
7070
# operation name without result
71-
(r"^\s*([A-Za-z0-9_\.\$\-]+)\b(?=[^<:])", Name.Function),
71+
(r"^(\s*)([A-Za-z0-9_\.\$\-]+)\b(?=[^<:])", bygroups(Text, Name.Function)),
7272
# identifiers / bare words
7373
(r"\b[_A-Za-z][_A-Za-z0-9\.-]*\b", Name.Other),
7474
# numbers: hex, float (with exponent), integer

0 commit comments

Comments
 (0)