Skip to content
Permalink
Browse files
Python: Made comment greedy (#3249)
  • Loading branch information
RunDevelopment committed Dec 2, 2021
1 parent 18c9204 commit 8ecef306a76be571ff14a18e504196f4f406903d
Showing with 3 additions and 2 deletions.
  1. +2 −1 components/prism-python.js
  2. +1 −1 components/prism-python.min.js
@@ -1,7 +1,8 @@
Prism.languages.python = {
'comment': {
pattern: /(^|[^\\])#.*/,
lookbehind: true
lookbehind: true,
greedy: true
},
'string-interpolation': {
pattern: /(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,

Some generated files are not rendered by default. Learn more.

0 comments on commit 8ecef30

Please sign in to comment.