Commits

Gaurav Jain committed 7c724a6

Ensure that number literals with base syntax use a single token

  • Participants
  • Parent commits 63d7ff7

Comments (0)

Files changed (2)

File pygments/lexers/shell.py

         'math': [
             (r'\)\)', Keyword, '#pop'),
             (r'[-+*/%^|&]|\*\*|\|\|', Operator),
+            (r'\d+#\d+', Number),
             (r'\d+#(?! )', Number),
             (r'\d+', Number),
             include('root'),

File tests/examplefiles/example.sh

 m=$((10#$1))
 echo $m
 
+m=$((10#1))
+echo $m
+
 m=$((10))
 echo $m