summaryrefslogtreecommitdiff
path: root/pygments/lexers
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2023-03-15 21:05:39 +0100
committerGitHub <noreply@github.com>2023-03-15 21:05:39 +0100
commit15f222adefd2bf7835bfd74a12d720028ae68d29 (patch)
tree20ec8adad1a964dd5e81d903b684dfd2da48f615 /pygments/lexers
parent11ef5aafc739202f823db79ca89e0c73e1db4e8f (diff)
downloadpygments-git-15f222adefd2bf7835bfd74a12d720028ae68d29.tar.gz
bash/tcsh: move "break" to keywords (#2377)
Fixes #2374
Diffstat (limited to 'pygments/lexers')
-rw-r--r--pygments/lexers/shell.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pygments/lexers/shell.py b/pygments/lexers/shell.py
index 7f6fe6cc..5826ee93 100644
--- a/pygments/lexers/shell.py
+++ b/pygments/lexers/shell.py
@@ -55,9 +55,9 @@ class BashLexer(RegexLexer):
],
'basic': [
(r'\b(if|fi|else|while|in|do|done|for|then|return|function|case|'
- r'select|continue|until|esac|elif)(\s*)\b',
+ r'select|break|continue|until|esac|elif)(\s*)\b',
bygroups(Keyword, Whitespace)),
- (r'\b(alias|bg|bind|break|builtin|caller|cd|command|compgen|'
+ (r'\b(alias|bg|bind|builtin|caller|cd|command|compgen|'
r'complete|declare|dirs|disown|echo|enable|eval|exec|exit|'
r'export|false|fc|fg|getopts|hash|help|history|jobs|kill|let|'
r'local|logout|popd|printf|pushd|pwd|read|readonly|set|shift|'
@@ -591,9 +591,9 @@ class TcshLexer(RegexLexer):
],
'basic': [
(r'\b(if|endif|else|while|then|foreach|case|default|'
- r'continue|goto|breaksw|end|switch|endsw)\s*\b',
+ r'break|continue|goto|breaksw|end|switch|endsw)\s*\b',
Keyword),
- (r'\b(alias|alloc|bg|bindkey|break|builtins|bye|caller|cd|chdir|'
+ (r'\b(alias|alloc|bg|bindkey|builtins|bye|caller|cd|chdir|'
r'complete|dirs|echo|echotc|eval|exec|exit|fg|filetest|getxvers|'
r'glob|getspath|hashstat|history|hup|inlib|jobs|kill|'
r'limit|log|login|logout|ls-F|migrate|newgrp|nice|nohup|notify|'