@lezer/python
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -0,1 +1,7 @@ | ||
## 1.1.7 (2023-05-27) | ||
### Bug fixes | ||
Fix a bug that broke handling of escaped quotes in format strings. | ||
## 1.1.6 (2023-05-18) | ||
@@ -2,0 +8,0 @@ |
@@ -46,3 +46,3 @@ import { ExternalTokenizer, ContextTracker, LRParser } from '@lezer/lr'; | ||
const newline = 10, carriageReturn = 13, space = 32, tab = 9, hash = 35, parenOpen = 40, dot = 46, | ||
braceOpen = 123, singleQuote = 39, doubleQuote = 34; | ||
braceOpen = 123, singleQuote = 39, doubleQuote = 34, backslash = 92; | ||
@@ -160,3 +160,3 @@ const bracketed = new Set([ | ||
} | ||
} else if (input.next == "\\") { | ||
} else if (input.next == backslash) { | ||
input.advance(); | ||
@@ -163,0 +163,0 @@ if (input.next >= 0) input.advance(); |
{ | ||
"name": "@lezer/python", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "Lezer-based Python grammar", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs", |
@@ -16,3 +16,3 @@ import {ExternalTokenizer, ContextTracker} from "@lezer/lr" | ||
const newline = 10, carriageReturn = 13, space = 32, tab = 9, hash = 35, parenOpen = 40, dot = 46, | ||
braceOpen = 123, singleQuote = 39, doubleQuote = 34 | ||
braceOpen = 123, singleQuote = 39, doubleQuote = 34, backslash = 92 | ||
@@ -130,3 +130,3 @@ const bracketed = new Set([ | ||
} | ||
} else if (input.next == "\\") { | ||
} else if (input.next == backslash) { | ||
input.advance() | ||
@@ -133,0 +133,0 @@ if (input.next >= 0) input.advance() |
@@ -48,4 +48,4 @@ # Operator precedence | ||
f'hello{22} abc {{ }} {d-1}' | ||
f"double {quoted !s}" | ||
f'hello{22} abc\' {{ }} {d-1}' | ||
f"double\" {quoted !s}" | ||
f"""big long format | ||
@@ -210,4 +210,5 @@ {string :foo}""" | ||
==> | ||
Script(ExpressionStatement(BinaryExpression( | ||
Number,ArithOp("**"), | ||
BinaryExpression(Number,ArithOp("**"),Number)))) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
144646