Skip to content

Commit

Permalink
enh(py): Added new keywords match and case
Browse files Browse the repository at this point in the history
Originally proposed in scopatz#434
  • Loading branch information
TinCan2 authored and davidhcefx committed Dec 12, 2024
1 parent dab68d8 commit db17b6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python.nanorc
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ color green "\<(NoneType|TypeType|IntType|LongType|FloatType|ComplexType|StringT
color green "def [a-zA-Z_0-9]+"
## keywords
color brightred "\<(and|as|from|import|not|or)\>"
color brightcyan "\<(assert|async|await|break|class|continue|def|del|elif|else|except|finally|for|global|if|in|is|lambda|map|pass|raise|return|try|with|while|yield)\>"
color brightcyan "\<(assert|async|await|break|case|class|continue|def|del|elif|else|except|finally|for|global|if|in|is|lambda|map|match|pass|raise|return|try|with|while|yield)\>"

## decorators
color brightgreen "@[a-zA-Z_0-9]+"
Expand Down

0 comments on commit db17b6d

Please sign in to comment.