Skip to content

Commit fbc9ff1

Browse files
Fix FOR colorization
1 parent 664eb4e commit fbc9ff1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/robotide/lib/compat/pygments/robotframework.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474

7575
FORSEP = ('IN', 'IN ENUMERATE', 'IN RANGE', 'IN ZIP')
7676
CONTROLS = ('AND', 'BREAK', 'CONTINUE', 'ELSE', 'ELSE IF', 'END', 'EXCEPT',
77-
'FINALLY', 'GROUP', 'IF', FORSEP[:], 'RETURN', 'TRY', 'VAR', 'WHILE')
77+
'FINALLY', 'FOR', 'GROUP', 'IF', FORSEP[:], 'RETURN', 'TRY', 'VAR', 'WHILE')
7878

7979
def get_key_by_value(table: dict, value: str) -> str:
8080
for k, v in table.items():
@@ -90,7 +90,7 @@ def normalize(string, remove='', strip=True):
9090
return string if not strip else string.strip()
9191

9292
def is_control(value):
93-
return value in CONTROLS and value not in FORSEP
93+
return value in CONTROLS # and value not in FORSEP
9494

9595
class RobotFrameworkLexer(Lexer):
9696
"""

0 commit comments

Comments
 (0)