You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is not lexed and formatted correctly with respect to in (unlike the rendering above as done by GitHub).
This is easily fixed by just adding in to the list of tokens. I believe the in keyword is not present for any of the shell lexers in lexers/shell.py, though I do not know which of the non-Bash shells also supports this keyword.
The text was updated successfully, but these errors were encountered:
Thanks, good catch! As far as I can tell, it's in PowerShell already, it's not in TCSH, but it's a keyword in Bash/ZSH/KSH, so I added it to the BashLexer only.
The shell lexer does not include the
in
keyword. In particular, theBashLexer
class contains the following basic tokens:which does not include
in
. Thus Bash code likeis not lexed and formatted correctly with respect to
in
(unlike the rendering above as done by GitHub).This is easily fixed by just adding
in
to the list of tokens. I believe thein
keyword is not present for any of the shell lexers inlexers/shell.py
, though I do not know which of the non-Bash shells also supports this keyword.The text was updated successfully, but these errors were encountered: