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

@cspell/dict-python

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cspell/dict-python - npm Package Compare versions

Comparing version 1.0.37 to 1.0.38

54

cspell-ext.json
// cSpell Settings
{
"id": "python",
"version": "0.2",
"readonly": true,
"name": "Python Dictionary",

@@ -10,3 +12,3 @@ "description": "Python Keyword Dictionary",

"name": "python",
"file": "./python.txt.gz",
"path": "./python.txt.gz",
"description": "Python Keyword Dictionary"

@@ -24,3 +26,2 @@ }

"languageId": "python",
// Apply settings

@@ -32,12 +33,49 @@ "allowCompoundWords": true,

// Patterns to be ignored
{ "name": "binary_string", "pattern": "\\bb'" },
{ "name": "f_string", "pattern": "\\b(?:rf|fr|f)'" },
{ "name": "unicode_string", "pattern": "\\bu'" },
{ "name": "raw_string", "pattern": "\\bu?r'" },
{
"name": "binary_string",
"pattern": "\\bb'"
},
{
"name": "f_string",
"pattern": "\\b(?:rf|fr|f)'"
},
{
"name": "unicode_string",
"pattern": "\\bu'"
},
{
"name": "raw_string",
"pattern": "\\bu?r'"
},
{
"name": "string-multi-line",
"pattern": "/(\"\"\"|''')[^\\1]*?\\1/g"
},
{
"name": "string-single-line",
"pattern": "/((?<!\\\\)(?:'|\"))(?!\\1).*?(?<!\\1)(?<!\\\\)\\1(?!\\1)/g"
},
// Redefine the "strings" and "comments" pattern to match Python
{
"name": "strings",
"pattern": "/(?:(\"\"\"|''')[^\\1]*?\\1|((?<!\\\\)(?:'|\")).*?(?<!\\\\)\\2)/g"
"pattern": [
"/((?<!\\\\)(?:'|\"))(?!\\1).*?(?<!\\1)(?<!\\\\)\\1(?!\\1)/g", // Single line string
"/(\"\"\"|''')[^\\1]*?\\1/g" // Multi-line string
]
},
{ "name": "comments", "pattern": "/#.*/g" }
{
"name": "comment-single-line",
"pattern": "/#.*/g"
},
{
"name": "comment-multi-line",
"pattern": "/(\"\"\"|''')[^\\1]*?\\1/g"
},
{
"name": "comments",
"pattern": [
"/#.*/g", // Single line comment
"/(\"\"\"|''')[^\\1]*?\\1/g" // Multi line comment using multi-line string
]
}
]

@@ -44,0 +82,0 @@ }

4

package.json
{
"name": "@cspell/dict-python",
"version": "1.0.37",
"version": "1.0.38",
"description": "Python dictionary for cspell.",

@@ -42,3 +42,3 @@ "publishConfig": {

],
"gitHead": "ba1fa58d02b4af9fdd27b3408417515511a837fe"
"gitHead": "dafe37d7e9deea73d37a586bf793aaba2ac699f7"
}

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