8000 Fix styling for * and ** operators · kaizhi-singtown/python@588fd2b · GitHub
[go: up one dir, main page]

Skip to content

Commit 588fd2b

Browse files
committed
Fix styling for * and ** operators
FIX: Fix a bug that caused binary * and ** operators to be highlighted as keywords/modifiers. See https://discuss.codemirror.net/t/python-parser-and-confusion/5652
1 parent eac78f1 commit 588fd2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/highlight.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const pythonHighlighting = styleTags({
2020
String: t.string,
2121
FormatString: t.special(t.string),
2222
UpdateOp: t.updateOperator,
23-
ArithOp: t.arithmeticOperator,
23+
"ArithOp!": t.arithmeticOperator,
2424
BitOp: t.bitwiseOperator,
2525
CompareOp: t.compareOperator,
2626
AssignOp: t.definitionOperator,

0 commit comments

Comments
 (0)
0