Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@lezer/python

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lezer/python - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

6

CHANGELOG.md

@@ -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 @@

4

dist/index.es.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc