Skip to content

Commit b30020b

Browse files
authored
Add Python 3.14+ template strings (#2162)
1 parent 7a87983 commit b30020b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rouge/lexers/python.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def current_string
124124

125125
# TODO: not in python 3
126126
rule %r/`.*?`/, Str::Backtick
127-
rule %r/([rfbu]{0,2})('''|"""|['"])/i do |m|
127+
rule %r/([rtfbu]{0,2})('''|"""|['"])/i do |m|
128128
groups Str::Affix, Str::Heredoc
129129
current_string.register type: m[1].downcase, delim: m[2]
130130
push :generic_string

0 commit comments

Comments
 (0)