Skip to content

Commit

Permalink
[python mode] Add f to delimiter stripping for Python mode
Browse files Browse the repository at this point in the history
So f-strings get terminated correctly
  • Loading branch information
takluyver authored and marijnh committed Aug 19, 2016
1 parent f87597d commit c45674b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mode/python/python.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
}

function tokenStringFactory(delimiter) {
while ("rub".indexOf(delimiter.charAt(0).toLowerCase()) >= 0)
while ("rubf".indexOf(delimiter.charAt(0).toLowerCase()) >= 0)
delimiter = delimiter.substr(1);

var singleline = delimiter.length == 1;
Expand Down

0 comments on commit c45674b

Please sign in to comment.