@cspell/dict-python
Advanced tools
Comparing version 1.0.37 to 1.0.38
// 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 @@ } |
{ | ||
"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
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
7667
81