From c5d3d9ca9e9494fca6b539da78ac4f028ab23708 Mon Sep 17 00:00:00 2001 From: "Creech (Intern)" Date: Thu, 31 May 2018 10:42:51 -0400 Subject: [PATCH 01/73] 'lcie' prefix was 'else condition' when it should have been 'else value' --- snippets/language-python.cson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/language-python.cson b/snippets/language-python.cson index 6962bb7..30e2110 100644 --- a/snippets/language-python.cson +++ b/snippets/language-python.cson @@ -94,7 +94,7 @@ 'body': '[${1:value} for ${2:value} in ${3:variable}]' 'List Comprehension If Else': 'prefix': 'lcie' - 'body': '[${1:value} if ${2:condition} else ${3:condition} for ${4:value} in ${5:variable}]' + 'body': '[${1:value} if ${2:condition} else ${3:value} for ${4:value} in ${5:variable}]' 'Dictionary Comprehension': 'prefix': 'dc' 'body': '{${1:key}: ${2:value} for ${3:key}, ${4:value} in ${5:variable}}' From 3db6a65a687d6ff35395669e6ed619cf4c9a0ab6 Mon Sep 17 00:00:00 2001 From: Wliu <50Wliu@users.noreply.github.com> Date: Thu, 31 May 2018 13:04:19 -0400 Subject: [PATCH 02/73] Use Visual Studio 2015 on Appveyor --- appveyor.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 2b0fde4..7d07d05 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,5 +1,7 @@ version: "{build}" +image: Visual Studio 2015 + platform: x64 branches: From 43ba8b655ab436e643b6a61004cda0933831024f Mon Sep 17 00:00:00 2001 From: Wliu <50Wliu@users.noreply.github.com> Date: Mon, 11 Jun 2018 09:49:54 -0400 Subject: [PATCH 03/73] Prepare 0.50.0 release --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d8d1107..19e5ce3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.49.5", + "version": "0.50.0", "engines": { "atom": "*", "node": "*" From d6942972a506a5d979a84a81ca5cbfeb1b56c111 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 18 Jun 2018 11:51:58 -0700 Subject: [PATCH 04/73] :arrow_up: tree-sitter-python --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 19e5ce3..117b0de 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ }, "dependencies": { "atom-grammar-test": "^0.6.4", - "tree-sitter-python": "^0.11.3" + "tree-sitter-python": "^0.12.0" }, "devDependencies": { "coffeelint": "^1.10.1" From f6beecff7c2943ffc928ae56070f39dd7ea195a1 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 18 Jun 2018 11:52:03 -0700 Subject: [PATCH 05/73] Prepare 0.50.1 release --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 117b0de..ace3bee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.50.0", + "version": "0.50.1", "engines": { "atom": "*", "node": "*" From aaaafdb77c446a00c6e7a48bb66ae422c87115c6 Mon Sep 17 00:00:00 2001 From: Pieter Goetschalckx <3.14.e.ter@gmail.com> Date: Wed, 27 Jun 2018 17:36:10 +0200 Subject: [PATCH 06/73] Add missing keywords to tree-sitter-python --- grammars/tree-sitter-python.cson | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index ee5db99..9f238c5 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -75,6 +75,9 @@ scopes: '"def"': 'storage.type.function' '"lambda"': 'storage.type.function' + '"global"': 'storage.modifier.global' + '"nonlocal"': 'storage.modifier.nonlocal' + '"if"': 'keyword.control' '"else"': 'keyword.control' '"elif"': 'keyword.control' @@ -83,6 +86,7 @@ scopes: '"return"': 'keyword.control' '"break"': 'keyword.control' '"continue"': 'keyword.control' + '"pass"': 'keyword.control' '"raise"': 'keyword.control' '"yield"': 'keyword.control' '"await"': 'keyword.control' @@ -94,8 +98,11 @@ scopes: '"finally"': 'keyword.control' '"import"': 'keyword.control' '"from"': 'keyword.control' - '"print"': 'keyword.control' - '"assert"': 'keyword.control' + + '"print"': 'keyword.other' + '"assert"': 'keyword.other' + '"exec"': 'keyword.other' + '"del"': 'keyword.other' '"+"': 'keyword.operator' '"-"': 'keyword.operator' From f0314f098517e1c1c07601a3cb5affcb61436bf1 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 18 Jul 2018 16:19:14 -0700 Subject: [PATCH 07/73] :arrow_up: tree-sitter-python --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ace3bee..78ab534 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ }, "dependencies": { "atom-grammar-test": "^0.6.4", - "tree-sitter-python": "^0.12.0" + "tree-sitter-python": "^0.13.0" }, "devDependencies": { "coffeelint": "^1.10.1" From dc380a47243e9585af2171935bd0d62334f853cd Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 18 Jul 2018 16:19:22 -0700 Subject: [PATCH 08/73] Prepare 0.51.0 release --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 78ab534..0fdd80c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.50.1", + "version": "0.51.0", "engines": { "atom": "*", "node": "*" From 3d8eeeb2328e8e5755b20d8bea623883be3e3f3c Mon Sep 17 00:00:00 2001 From: AmyShackles Date: Sat, 21 Jul 2018 22:47:30 -0700 Subject: [PATCH 09/73] Removed 'self' snippet --- snippets/language-python.cson | 4 ---- 1 file changed, 4 deletions(-) diff --git a/snippets/language-python.cson b/snippets/language-python.cson index 30e2110..bedd86f 100644 --- a/snippets/language-python.cson +++ b/snippets/language-python.cson @@ -119,7 +119,3 @@ 'if __name__ == \'__main__\'': 'prefix': 'ifmain' 'body': 'if __name__ == \'__main__\':\n\t${1:main()}$0' -'.source.python:not(.string)': - 'self': - 'prefix': '.' - 'body': 'self.' From 4241f2664a86dd61302e8f1a05a63c70da05f8eb Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 25 Jul 2018 11:59:07 -0700 Subject: [PATCH 10/73] :arrow_up: tree-sitter-python, highlight escape sequences --- grammars/tree-sitter-python.cson | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index 9f238c5..be5cd11 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -53,6 +53,10 @@ scopes: 'comment': 'comment.line' 'string': 'string.quoted' + 'escape_sequence': 'constant.character.escape' + 'interpolation': 'meta.embedded' + 'interpolation > "{"': 'punctuation.section.embedded' + 'interpolation > "}"': 'punctuation.section.embedded' 'class_definition > identifier': 'entity.name.type.class' 'function_definition > identifier': 'entity.name.function' diff --git a/package.json b/package.json index 0fdd80c..fb274bf 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ }, "dependencies": { "atom-grammar-test": "^0.6.4", - "tree-sitter-python": "^0.13.0" + "tree-sitter-python": "^0.13.1" }, "devDependencies": { "coffeelint": "^1.10.1" From 4cc2994c46fa5849ad7f7e71ca6ef9d0802a589b Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 25 Jul 2018 11:59:25 -0700 Subject: [PATCH 11/73] Prepare 0.51.1 release --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fb274bf..fd06b7d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.51.0", + "version": "0.51.1", "engines": { "atom": "*", "node": "*" From 07bf91515bdf75f3c399bccb7692a436f5cf2aa9 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 25 Jul 2018 13:35:22 -0700 Subject: [PATCH 12/73] :arrow_up: tree-sitter-python --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fd06b7d..fc672fe 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ }, "dependencies": { "atom-grammar-test": "^0.6.4", - "tree-sitter-python": "^0.13.1" + "tree-sitter-python": "^0.13.3" }, "devDependencies": { "coffeelint": "^1.10.1" From 348ec0537676200ffb85204f47f96ca78f34bd23 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 31 Jul 2018 12:41:50 -0700 Subject: [PATCH 13/73] :arrow_up: tree-sitter-python --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fc672fe..be28f3b 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ }, "dependencies": { "atom-grammar-test": "^0.6.4", - "tree-sitter-python": "^0.13.3" + "tree-sitter-python": "^0.13.4" }, "devDependencies": { "coffeelint": "^1.10.1" From 3e26b67f6c840823536f5b1ac726d9d92f662e29 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 31 Jul 2018 12:43:11 -0700 Subject: [PATCH 14/73] Prepare 0.51.2 release --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index be28f3b..010860b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.51.1", + "version": "0.51.2", "engines": { "atom": "*", "node": "*" From 9febb29afd78b50f180d4b6271ef776d93f0f661 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Fri, 10 Aug 2018 14:40:24 -0700 Subject: [PATCH 15/73] Use new tree-sitter grammar regex --- grammars/tree-sitter-python.cson | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index be5cd11..8ea2df4 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -4,6 +4,14 @@ type: 'tree-sitter' parser: 'tree-sitter-python' legacyScopeName: 'source.python' +firstLineRegex: [ + # shebang line + '^#!.*\\b(python)\\r?\\n' + + # vim modeline + 'vim\\b.*\\bset\\b.*\\b(filetype|ft|syntax)=python' +] + fileTypes: [ 'py' 'pyi' From 09159c6a21be6675a0878d839c2dab6ad621612b Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Fri, 10 Aug 2018 14:40:28 -0700 Subject: [PATCH 16/73] Prepare 0.51.3 release --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 010860b..a2d0aab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.51.2", + "version": "0.51.3", "engines": { "atom": "*", "node": "*" From ae80d779fae54685d79bfcee3dbc53b3235e072b Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 20 Aug 2018 11:14:31 -0700 Subject: [PATCH 17/73] Replace id and legacyScopeName with scopeName --- grammars/tree-sitter-python.cson | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index 8ea2df4..974174c 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -1,8 +1,7 @@ -id: 'python' name: 'Python' +scopeName: 'source.python' type: 'tree-sitter' parser: 'tree-sitter-python' -legacyScopeName: 'source.python' firstLineRegex: [ # shebang line From dd148532dcca3185f306daf484d71147178ec0ba Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 20 Aug 2018 11:19:12 -0700 Subject: [PATCH 18/73] Prepare 0.51.4-0 release --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a2d0aab..8a0747e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.51.3", + "version": "0.51.4-0", "engines": { "atom": "*", "node": "*" From b460357555af775bd6ce517015a750759dcdbdf4 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 20 Aug 2018 13:23:38 -0700 Subject: [PATCH 19/73] Prepare 0.51.4 release --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8a0747e..62b8462 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.51.4-0", + "version": "0.51.4", "engines": { "atom": "*", "node": "*" From 7f89dc3ebe2a425dcf136e96652eecdb5ce88096 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Fri, 24 Aug 2018 09:16:06 -0700 Subject: [PATCH 20/73] Explicitly disable tree-sitter for textmate grammar specs --- spec/language-python-spec.coffee | 2 ++ spec/python-regex-spec.coffee | 2 ++ spec/python-spec.coffee | 2 ++ 3 files changed, 6 insertions(+) diff --git a/spec/language-python-spec.coffee b/spec/language-python-spec.coffee index e5b431e..e21fb82 100644 --- a/spec/language-python-spec.coffee +++ b/spec/language-python-spec.coffee @@ -5,6 +5,8 @@ describe 'Python settings', -> editor.destroy() beforeEach -> + atom.config.set('core.useTreeSitterParsers', false) + waitsForPromise -> atom.workspace.open().then (o) -> editor = o diff --git a/spec/python-regex-spec.coffee b/spec/python-regex-spec.coffee index cb11eee..f2f2ae5 100644 --- a/spec/python-regex-spec.coffee +++ b/spec/python-regex-spec.coffee @@ -2,6 +2,8 @@ describe 'Python regular expression grammar', -> grammar = null beforeEach -> + atom.config.set('core.useTreeSitterParsers', false) + waitsForPromise -> atom.packages.activatePackage('language-python') diff --git a/spec/python-spec.coffee b/spec/python-spec.coffee index 3f5eeba..c1851d0 100644 --- a/spec/python-spec.coffee +++ b/spec/python-spec.coffee @@ -5,6 +5,8 @@ describe "Python grammar", -> grammar = null beforeEach -> + atom.config.set('core.useTreeSitterParsers', false) + waitsForPromise -> atom.packages.activatePackage("language-python") From 50aa96b504a8c8ce24609c2b7ad1c4bc20e6e9d2 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Fri, 24 Aug 2018 09:16:25 -0700 Subject: [PATCH 21/73] Prepare 0.51.5 release --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 62b8462..d273160 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.51.4", + "version": "0.51.5", "engines": { "atom": "*", "node": "*" From c78d2c159fe02deb52713963456319e613096d7f Mon Sep 17 00:00:00 2001 From: Kyle Barron Date: Tue, 11 Sep 2018 18:52:46 -0400 Subject: [PATCH 22/73] Add foldEndPattern --- settings/language-python.cson | 1 + 1 file changed, 1 insertion(+) diff --git a/settings/language-python.cson b/settings/language-python.cson index 001e981..1d89625 100644 --- a/settings/language-python.cson +++ b/settings/language-python.cson @@ -4,5 +4,6 @@ 'softTabs': true 'tabLength': 4 'commentStart': '# ' + 'foldEndPattern': '^\\s*\\}|^\\s*\\]|^\\s*\\)' 'increaseIndentPattern': '^\\s*(class|def|elif|else|except|finally|for|if|try|with|while|async\\s+(def|for|with))\\b.*:\\s*$' 'decreaseIndentPattern': '^\\s*(elif|else|except|finally)\\b.*:\\s*$' From bc05c8473d66b6bb88b722f9c914e062dd3b4174 Mon Sep 17 00:00:00 2001 From: Benjamin Gray Date: Thu, 20 Sep 2018 21:49:31 +1000 Subject: [PATCH 23/73] Escape regex properly --- grammars/regular expressions (python).cson | 4 ++++ spec/python-regex-spec.coffee | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/grammars/regular expressions (python).cson b/grammars/regular expressions (python).cson index fabcd80..18d1438 100644 --- a/grammars/regular expressions (python).cson +++ b/grammars/regular expressions (python).cson @@ -14,6 +14,10 @@ 'match': '\\\\[1-9][0-9]?' 'name': 'keyword.other.back-reference.regexp' } + { + 'match': '\\\\.' + 'name': 'constant.character.escape.backslash.regexp' + } { 'match': '[?+*][?+]?|\\{(\\d+,\\d+|\\d+,|,\\d+|\\d+)\\}\\??' 'name': 'keyword.operator.quantifier.regexp' diff --git a/spec/python-regex-spec.coffee b/spec/python-regex-spec.coffee index f2f2ae5..d1cb81a 100644 --- a/spec/python-regex-spec.coffee +++ b/spec/python-regex-spec.coffee @@ -30,3 +30,23 @@ describe 'Python regular expression grammar', -> expect(tokens[1]).toEqual value: '^', scopes: ['source.regexp.python', 'constant.other.character-class.set.regexp', 'keyword.operator.negation.regexp'] expect(tokens[2]).toEqual value: '][', scopes: ['source.regexp.python', 'constant.other.character-class.set.regexp'] expect(tokens[3]).toEqual value: ']', scopes: ['source.regexp.python', 'constant.other.character-class.set.regexp', 'punctuation.definition.character-class.end.regexp'] + + it 'escapes the character following any backslash', -> + {tokens} = grammar.tokenizeLine '''\\q\\(\\[\\'\\"\\?\\^\\-\\*\\.\\#''' + expect(tokens[0]).toEqual value: '\\q', scopes: ['source.regexp.python', 'constant.character.escape.backslash.regexp'] + expect(tokens[1]).toEqual value: '\\(', scopes: ['source.regexp.python', 'constant.character.escape.backslash.regexp'] + expect(tokens[2]).toEqual value: '\\[', scopes: ['source.regexp.python', 'constant.character.escape.backslash.regexp'] + expect(tokens[3]).toEqual value: '\\\'', scopes: ['source.regexp.python', 'constant.character.escape.backslash.regexp'] + expect(tokens[4]).toEqual value: '\\"', scopes: ['source.regexp.python', 'constant.character.escape.backslash.regexp'] + expect(tokens[5]).toEqual value: '\\?', scopes: ['source.regexp.python', 'constant.character.escape.backslash.regexp'] + expect(tokens[6]).toEqual value: '\\^', scopes: ['source.regexp.python', 'constant.character.escape.backslash.regexp'] + expect(tokens[7]).toEqual value: '\\-', scopes: ['source.regexp.python', 'constant.character.escape.backslash.regexp'] + expect(tokens[8]).toEqual value: '\\*', scopes: ['source.regexp.python', 'constant.character.escape.backslash.regexp'] + expect(tokens[9]).toEqual value: '\\.', scopes: ['source.regexp.python', 'constant.character.escape.backslash.regexp'] + expect(tokens[10]).toEqual value: '\\#', scopes: ['source.regexp.python', 'constant.character.escape.backslash.regexp'] + + {tokens} = grammar.tokenizeLine '''(\\()\\)''' + expect(tokens[0]).toEqual value: '(', scopes: ['source.regexp.python', 'meta.group.regexp', 'punctuation.definition.group.regexp'] + expect(tokens[1]).toEqual value: '\\(', scopes: ['source.regexp.python', 'meta.group.regexp', 'constant.character.escape.backslash.regexp'] + expect(tokens[2]).toEqual value: ')', scopes: ['source.regexp.python', 'meta.group.regexp', 'punctuation.definition.group.regexp'] + expect(tokens[3]).toEqual value: '\\)', scopes: ['source.regexp.python', 'constant.character.escape.backslash.regexp'] From e230b399b28e72289e5bc4b480453c02eaf4d717 Mon Sep 17 00:00:00 2001 From: Jason Rudolph Date: Tue, 25 Sep 2018 14:34:27 -0400 Subject: [PATCH 24/73] :memo: Update .github --- .github/no-response.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/no-response.yml diff --git a/.github/no-response.yml b/.github/no-response.yml new file mode 100644 index 0000000..3c6b33d --- /dev/null +++ b/.github/no-response.yml @@ -0,0 +1,15 @@ +# Configuration for probot-no-response - https://github.com/probot/no-response + +# Number of days of inactivity before an issue is closed for lack of response +daysUntilClose: 180 + +# Label requiring a response +responseRequiredLabel: more-information-needed + +# Comment to post when closing an issue for lack of response. Set to `false` to disable. +closeComment: > + This issue has been automatically closed because there has been no response + to our request for more information from the original author. With only the + information that is currently in the issue, we don't have enough information + to take action. Please reach out if you have or find the answers we need so + that we can investigate further. From 5e7410c43cb68d759b0b02f7bbdee898305a8adc Mon Sep 17 00:00:00 2001 From: Jason Rudolph Date: Tue, 2 Oct 2018 11:44:14 -0400 Subject: [PATCH 25/73] :memo: Update .github --- .github/no-response.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/no-response.yml b/.github/no-response.yml index 3c6b33d..1c8799d 100644 --- a/.github/no-response.yml +++ b/.github/no-response.yml @@ -1,7 +1,7 @@ # Configuration for probot-no-response - https://github.com/probot/no-response # Number of days of inactivity before an issue is closed for lack of response -daysUntilClose: 180 +daysUntilClose: 28 # Label requiring a response responseRequiredLabel: more-information-needed From d9eaf164bdb0a0febccbbf71036511848ea56a10 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Wed, 17 Oct 2018 07:18:45 -0700 Subject: [PATCH 26/73] Prepare 0.51.6 release --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d273160..eb64879 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.51.5", + "version": "0.51.6", "engines": { "atom": "*", "node": "*" From a9bbc868ad321c297d6db5da37f1478e28f32673 Mon Sep 17 00:00:00 2001 From: Linus Eriksson Date: Mon, 29 Oct 2018 12:21:14 +0100 Subject: [PATCH 27/73] Scope operators as keyword.operator --- grammars/tree-sitter-python.cson | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index 974174c..7470566 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -120,6 +120,29 @@ scopes: '"*"': 'keyword.operator' '"/"': 'keyword.operator' '"%"': 'keyword.operator' + '"**"': 'keyword.operator' + '"//"': 'keyword.operator' + '"=="': 'keyword.operator' + '"!="': 'keyword.operator' + '"<>"': 'keyword.operator' + '">"': 'keyword.operator' + '"<"': 'keyword.operator' + '">="': 'keyword.operator' + '"<="': 'keyword.operator' + '"="': 'keyword.operator' + '"+="': 'keyword.operator' + '"-="': 'keyword.operator' + '"*="': 'keyword.operator' + '"/="': 'keyword.operator' + '"%="': 'keyword.operator' + '"**="': 'keyword.operator' + '"//="': 'keyword.operator' + '"&"': 'keyword.operator' + '"|"': 'keyword.operator' + '"^"': 'keyword.operator' + '"~"': 'keyword.operator' + '"<<"': 'keyword.operator' + '">>"': 'keyword.operator' '"in"': 'keyword.operator.logical.python' '"and"': 'keyword.operator.logical.python' '"or"': 'keyword.operator.logical.python' From df3934c7b13248af1a4c213c1f7e5070b0b5310c Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 29 Oct 2018 14:09:37 -0700 Subject: [PATCH 28/73] Highlight keyword argument names Refs #281 --- grammars/tree-sitter-python.cson | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index 7470566..bfc6d06 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -89,6 +89,8 @@ scopes: '"global"': 'storage.modifier.global' '"nonlocal"': 'storage.modifier.nonlocal' + 'keyword_argument > identifier:nth-child(0)': 'variable.parameter.function' + '"if"': 'keyword.control' '"else"': 'keyword.control' '"elif"': 'keyword.control' From 526f638e4f985081049ba4c8bd13c31425f70cd4 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 29 Oct 2018 14:12:40 -0700 Subject: [PATCH 29/73] 0.51.8 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index eb64879..2f327e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.51.6", + "version": "0.51.8", "engines": { "atom": "*", "node": "*" From 05d9238afec45e45881963888f797800c9fbc836 Mon Sep 17 00:00:00 2001 From: Winston Liu <50Wliu@users.noreply.github.com> Date: Mon, 12 Nov 2018 23:32:26 -0500 Subject: [PATCH 30/73] Update settings/language-python.cson Co-Authored-By: kylebarron --- settings/language-python.cson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings/language-python.cson b/settings/language-python.cson index 1d89625..8538f10 100644 --- a/settings/language-python.cson +++ b/settings/language-python.cson @@ -4,6 +4,6 @@ 'softTabs': true 'tabLength': 4 'commentStart': '# ' - 'foldEndPattern': '^\\s*\\}|^\\s*\\]|^\\s*\\)' + 'foldEndPattern': '^\\s*[}\\])]' 'increaseIndentPattern': '^\\s*(class|def|elif|else|except|finally|for|if|try|with|while|async\\s+(def|for|with))\\b.*:\\s*$' 'decreaseIndentPattern': '^\\s*(elif|else|except|finally)\\b.*:\\s*$' From 56389716e91ee009936fe6b4e9643a256b7d54dd Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 12 Nov 2018 21:47:27 -0800 Subject: [PATCH 31/73] :arrow_up: tree-sitter-python --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2f327e8..8714f04 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ }, "dependencies": { "atom-grammar-test": "^0.6.4", - "tree-sitter-python": "^0.13.4" + "tree-sitter-python": "^0.13.6" }, "devDependencies": { "coffeelint": "^1.10.1" From 38dd8484267376001da0d117a73e301d4e52705e Mon Sep 17 00:00:00 2001 From: Linus Eriksson Date: Tue, 13 Nov 2018 19:32:24 +0100 Subject: [PATCH 32/73] Scope built in functions as support.function --- grammars/tree-sitter-python.cson | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index bfc6d06..46a4e37 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -67,7 +67,11 @@ scopes: 'class_definition > identifier': 'entity.name.type.class' 'function_definition > identifier': 'entity.name.function' - 'call > identifier:nth-child(0)': 'entity.name.function' + 'call > identifier:nth-child(0)': [ + {match: '^(abs|all|any|ascii|bin|bool|breakpoint|bytearray|bytes|callable|chr|classmethod|compile|complex|delattr|dict|dir|divmod|enumerate|eval|exec|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|isinstance|issubclass|iter|len|list|locals|map|max|memoryview|min|next|object|oct|open|ord|pow|print|property|range|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|vars|zip|__import__)$', + scopes: 'support.function'}, + 'entity.name.function' + ] 'call > attribute > identifier:nth-child(2)': 'entity.name.function' 'attribute > identifier:nth-child(2)': 'variable.other.object.property' From 3b2bcdd3ac92cd4adadee5ef79c65e1f27481557 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Thu, 15 Nov 2018 12:45:57 -0800 Subject: [PATCH 33/73] Add tree-sitter keyword to package.json --- package.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.json b/package.json index 8714f04..e437e9a 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,9 @@ "node": "*" }, "description": "Python language support in Atom", + "keywords": [ + "tree-sitter" + ], "homepage": "https://atom.github.io/language-python", "repository": { "type": "git", From 9eae0b418567c3a15a81ad71694c658d254a8d1c Mon Sep 17 00:00:00 2001 From: Linus Eriksson Date: Fri, 23 Nov 2018 20:51:32 +0100 Subject: [PATCH 34/73] Add more scopes to the tree sitter grammar Exceptions -> support.type.exception integer&float -> numeric add @ and @= operator --- grammars/tree-sitter-python.cson | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index 46a4e37..1afdc38 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -74,6 +74,11 @@ scopes: ] 'call > attribute > identifier:nth-child(2)': 'entity.name.function' + 'identifier': + {match: + '^(BaseException|Exception|TypeError|StopAsyncIteration|StopIteration|ImportError|ModuleNotFoundError|OSError|ConnectionError|BrokenPipeError|ConnectionAbortedError|ConnectionRefusedError|ConnectionResetError|BlockingIOError|ChildProcessError|FileExistsError|FileNotFoundError|IsADirectoryError|NotADirectoryError|InterruptedError|PermissionError|ProcessLookupError|TimeoutError|EOFError|RuntimeError|RecursionError|NotImplementedError|NameError|UnboundLocalError|AttributeError|SyntaxError|IndentationError|TabError|LookupError|IndexError|KeyError|ValueError|UnicodeError|UnicodeEncodeError|UnicodeDecodeError|UnicodeTranslateError|AssertionError|ArithmeticError|FloatingPointError|OverflowError|ZeroDivisionError|SystemError|ReferenceError|BufferError|MemoryError|Warning|UserWarning|DeprecationWarning|PendingDeprecationWarning|SyntaxWarning|RuntimeWarning|FutureWarning|ImportWarning|UnicodeWarning|BytesWarning|ResourceWarning|GeneratorExit|SystemExit|KeyboardInterrupt)$' + scopes: 'support.type.exception'} + 'attribute > identifier:nth-child(2)': 'variable.other.object.property' 'decorator': 'entity.name.function.decorator' @@ -81,8 +86,8 @@ scopes: 'none': 'constant.language' 'true': 'constant.language' 'false': 'constant.language' - 'integer': 'constant.language' - 'float': 'constant.language' + 'integer': 'constant.numeric' + 'float': 'constant.numeric' 'type > identifier': 'support.storage.type' @@ -149,6 +154,8 @@ scopes: '"~"': 'keyword.operator' '"<<"': 'keyword.operator' '">>"': 'keyword.operator' + 'binary_operator > "@"': 'keyword.operator' + 'binary_operator > "@="': 'keyword.operator' '"in"': 'keyword.operator.logical.python' '"and"': 'keyword.operator.logical.python' '"or"': 'keyword.operator.logical.python' From 7711cdcfc8acc36f6b70cdab34374c7defd53c5c Mon Sep 17 00:00:00 2001 From: Etienne Napoleone Date: Wed, 28 Nov 2018 19:55:24 +0700 Subject: [PATCH 35/73] Fix PEP8 E301 in class snippet A blank line is required before a class methode --- snippets/language-python.cson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/language-python.cson b/snippets/language-python.cson index 30e2110..ef609e3 100644 --- a/snippets/language-python.cson +++ b/snippets/language-python.cson @@ -55,7 +55,7 @@ 'body': 'self.fail(\'${1:message}\')$0' 'New Class': 'prefix': 'class' - 'body': 'class ${1:ClassName}(${2:object}):\n\t"""${3:docstring for $1.}"""\n\tdef __init__(self, ${4:arg}):\n\t\t${5:super($1, self).__init__()}\n\t\tself.arg = arg\n\t\t$0' + 'body': 'class ${1:ClassName}(${2:object}):\n\t"""${3:docstring for $1.}"""\n\n\tdef __init__(self, ${4:arg}):\n\t\t${5:super($1, self).__init__()}\n\t\tself.arg = arg\n\t\t$0' 'New Method': 'prefix': 'defs' 'body': 'def ${1:mname}(self, ${2:arg}):\n\t${3:pass}' From 1cf33988212f54a419ba5d8bfd7d72ea62edee5c Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 5 Feb 2019 16:38:18 -0800 Subject: [PATCH 36/73] Fix code folding for 'elif' and 'else' statements --- grammars/tree-sitter-python.cson | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index 46a4e37..ff31929 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -27,7 +27,8 @@ fileTypes: [ folds: [ { type: [ - 'if_statement' + 'elif_clause' + 'else_clause' 'for_statement' 'try_statement' 'with_statement' @@ -37,6 +38,11 @@ folds: [ 'async_function_definition' ] start: {type: ':'} + }, + { + type: ['if_statement'] + start: {type: ':'} + end: {type: ['elif_clause', 'else_clause']} } { start: {type: '(', index: 0} From ad49f4a498987056b0f4fe5bbdf02dc685dde5cd Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 5 Feb 2019 17:15:36 -0800 Subject: [PATCH 37/73] Prepare 0.51.9 release --- package-lock.json | 188 ++++++++++++++++++++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 189 insertions(+), 1 deletion(-) create mode 100644 package-lock.json diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..743c8e3 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,188 @@ +{ + "name": "language-python", + "version": "0.51.9", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "atom-grammar-test": { + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/atom-grammar-test/-/atom-grammar-test-0.6.4.tgz", + "integrity": "sha1-2KU1A9H+k5mX9Ji3SirDEARKfU4=", + "requires": { + "chevrotain": "^0.18.0", + "escape-string-regexp": "^1.0.5" + } + }, + "balanced-match": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", + "dev": true + }, + "brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "chevrotain": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/chevrotain/-/chevrotain-0.18.0.tgz", + "integrity": "sha1-sodxTjFZC64sXR4vYRZz7+xHnYA=" + }, + "coffee-script": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.11.1.tgz", + "integrity": "sha1-vxxHrWREOg2V0S3ysUfMCk2q1uk=", + "dev": true + }, + "coffeelint": { + "version": "1.16.2", + "resolved": "https://registry.npmjs.org/coffeelint/-/coffeelint-1.16.2.tgz", + "integrity": "sha512-6mzgOo4zb17WfdrSui/cSUEgQ0AQkW3gXDht+6lHkfkqGUtSYKwGdGcXsDfAyuScVzTlTtKdfwkAlJWfqul7zg==", + "dev": true, + "requires": { + "coffee-script": "~1.11.0", + "glob": "^7.0.6", + "ignore": "^3.0.9", + "optimist": "^0.6.1", + "resolve": "^0.6.3", + "strip-json-comments": "^1.0.2" + } + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "glob": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", + "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "ignore": { + "version": "3.3.10", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-3.3.10.tgz", + "integrity": "sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug==", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", + "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=", + "dev": true + }, + "nan": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.12.1.tgz", + "integrity": "sha512-JY7V6lRkStKcKTvHO5NVSQRv+RV+FIL5pvDoLiAtSL9pKlC5x9PKQcZDsq7m4FO4d57mkhC6Z+QhAh3Jdk5JFw==" + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "optimist": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.6.1.tgz", + "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", + "dev": true, + "requires": { + "minimist": "~0.0.1", + "wordwrap": "~0.0.2" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "resolve": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-0.6.3.tgz", + "integrity": "sha1-3ZV5gufnNt699TtYpN2RdUV13UY=", + "dev": true + }, + "strip-json-comments": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-1.0.4.tgz", + "integrity": "sha1-HhX7ysl9Pumb8tc7TGVrCCu6+5E=", + "dev": true + }, + "tree-sitter-python": { + "version": "0.13.6", + "resolved": "https://registry.npmjs.org/tree-sitter-python/-/tree-sitter-python-0.13.6.tgz", + "integrity": "sha512-QGc7dNObFv5+kCIvknO+Jv9eHusgamlcxZpLkDioAK6/dZ/f+3vbn3KQ2y4PpS1qiAHaaxh2V4XgMyv6k/rS9g==", + "requires": { + "nan": "^2.4.0" + } + }, + "wordwrap": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz", + "integrity": "sha1-o9XabNXAvAAI03I0u68b7WMFkQc=", + "dev": true + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + } + } +} diff --git a/package.json b/package.json index e437e9a..b1bab16 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.51.8", + "version": "0.51.9", "engines": { "atom": "*", "node": "*" From 50f0fd087c78874ca60edc3c738d3ae2297fc33d Mon Sep 17 00:00:00 2001 From: Caleb Evans Date: Sat, 6 Apr 2019 12:32:54 -0700 Subject: [PATCH 38/73] Add support for python2/3 shebangs in tree-sitter grammar --- grammars/tree-sitter-python.cson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index ff31929..e95ceb7 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -5,7 +5,7 @@ parser: 'tree-sitter-python' firstLineRegex: [ # shebang line - '^#!.*\\b(python)\\r?\\n' + '^#![ \\t]*/.*\\bpython[\\d\\.]*\\b' # vim modeline 'vim\\b.*\\bset\\b.*\\b(filetype|ft|syntax)=python' From 7159e8b5b1092d73844bd69ee14434be82629f77 Mon Sep 17 00:00:00 2001 From: Caleb Evans Date: Sat, 6 Apr 2019 13:39:11 -0700 Subject: [PATCH 39/73] Tokenize formal function parameters in tree-sitter grammar --- grammars/tree-sitter-python.cson | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index ff31929..0560c96 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -99,6 +99,8 @@ scopes: '"global"': 'storage.modifier.global' '"nonlocal"': 'storage.modifier.nonlocal' + 'parameters > identifier': 'variable.parameter.function' + 'default_parameter > identifier:nth-child(0)': 'variable.parameter.function' 'keyword_argument > identifier:nth-child(0)': 'variable.parameter.function' '"if"': 'keyword.control' From c8283a90ffb4896000df053bd27ef0fee6611a2a Mon Sep 17 00:00:00 2001 From: Caleb Evans Date: Sat, 6 Apr 2019 14:04:33 -0700 Subject: [PATCH 40/73] Tokenize subclass list names in tree-sitter grammar --- grammars/tree-sitter-python.cson | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index ff31929..a99a177 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -92,6 +92,11 @@ scopes: 'type > identifier': 'support.storage.type' + 'class_definition > argument_list > attribute': 'entity.other.inherited-class' + 'class_definition > argument_list > identifier': 'entity.other.inherited-class' + 'class_definition > argument_list > keyword_argument > attribute': 'entity.other.inherited-class' + 'class_definition > argument_list > keyword_argument > identifier:nth-child(2)': 'entity.other.inherited-class' + '"class"': 'storage.type.class' '"def"': 'storage.type.function' '"lambda"': 'storage.type.function' From 177fda9ea6ef02692cf430ac202bef24dbebec50 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Sun, 7 Apr 2019 14:30:09 -0700 Subject: [PATCH 41/73] :arrow_up: tree-sitter-python --- package-lock.json | 12 ++++++------ package.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 743c8e3..c678365 100644 --- a/package-lock.json +++ b/package-lock.json @@ -123,9 +123,9 @@ "dev": true }, "nan": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.12.1.tgz", - "integrity": "sha512-JY7V6lRkStKcKTvHO5NVSQRv+RV+FIL5pvDoLiAtSL9pKlC5x9PKQcZDsq7m4FO4d57mkhC6Z+QhAh3Jdk5JFw==" + "version": "2.13.2", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.13.2.tgz", + "integrity": "sha512-TghvYc72wlMGMVMluVo9WRJc0mB8KxxF/gZ4YYFy7V2ZQX9l7rgbPg7vjS9mt6U5HXODVFVI2bOduCzwOMv/lw==" }, "once": { "version": "1.4.0", @@ -165,9 +165,9 @@ "dev": true }, "tree-sitter-python": { - "version": "0.13.6", - "resolved": "https://registry.npmjs.org/tree-sitter-python/-/tree-sitter-python-0.13.6.tgz", - "integrity": "sha512-QGc7dNObFv5+kCIvknO+Jv9eHusgamlcxZpLkDioAK6/dZ/f+3vbn3KQ2y4PpS1qiAHaaxh2V4XgMyv6k/rS9g==", + "version": "0.14.0", + "resolved": "https://registry.npmjs.org/tree-sitter-python/-/tree-sitter-python-0.14.0.tgz", + "integrity": "sha512-Kcj5AUdeI4/c/JLsQV8OFI0zLrwcQ1nKoqCRr+W73Tp5SIK+Dd1ILNC5TFHPw1IqOGstcg8AH0XTeU0uq3boZg==", "requires": { "nan": "^2.4.0" } diff --git a/package.json b/package.json index b1bab16..1da205e 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ }, "dependencies": { "atom-grammar-test": "^0.6.4", - "tree-sitter-python": "^0.13.6" + "tree-sitter-python": "^0.14.0" }, "devDependencies": { "coffeelint": "^1.10.1" From a6a1abef1c558d162b5b9b26bafbc36a3ba81396 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Sun, 7 Apr 2019 14:30:31 -0700 Subject: [PATCH 42/73] Prepare 0.51.10 release --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index c678365..62134ae 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.51.9", + "version": "0.51.10", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 1da205e..60e923e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.51.9", + "version": "0.51.10", "engines": { "atom": "*", "node": "*" From 591fc791290a9aa42b3432ddc1142c89233e59da Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 10 Apr 2019 15:34:05 -0600 Subject: [PATCH 43/73] Prepare 0.52.0 release --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 62134ae..6e6c485 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.51.10", + "version": "0.52.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 60e923e..0281087 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.51.10", + "version": "0.52.0", "engines": { "atom": "*", "node": "*" From b5011ef56dc4ac01a578f3e620b357ef8ae4c9a0 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 10 Apr 2019 15:49:38 -0600 Subject: [PATCH 44/73] Prepare 0.53.0 release --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6e6c485..5237194 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.52.0", + "version": "0.53.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 0281087..51b59a7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.52.0", + "version": "0.53.0", "engines": { "atom": "*", "node": "*" From 4d55d0ecbe93ba03a74a28896c921b82cb6bd50b Mon Sep 17 00:00:00 2001 From: Linus Eriksson Date: Thu, 11 Apr 2019 19:36:33 +0200 Subject: [PATCH 45/73] Allow folding if statement without elif or else --- grammars/tree-sitter-python.cson | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index ac1404f..ec0138a 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -25,8 +25,14 @@ fileTypes: [ ] folds: [ + { + type: ['if_statement'] + start: {type: ':'} + end: {type: ['elif_clause', 'else_clause']} + }, { type: [ + 'if_statement' 'elif_clause' 'else_clause' 'for_statement' @@ -39,11 +45,6 @@ folds: [ ] start: {type: ':'} }, - { - type: ['if_statement'] - start: {type: ':'} - end: {type: ['elif_clause', 'else_clause']} - } { start: {type: '(', index: 0} end: {type: ')', index: -1} From be7347256f501028d01621fc1125f0535c6132e3 Mon Sep 17 00:00:00 2001 From: Linus Eriksson Date: Thu, 18 Apr 2019 23:52:31 +0200 Subject: [PATCH 46/73] Prepare 0.53.1 release --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5237194..6d5e76c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.53.0", + "version": "0.53.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 51b59a7..9ce904c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.53.0", + "version": "0.53.1", "engines": { "atom": "*", "node": "*" From 878f3509636237fe7bbfe2c5f06b59229e93fa93 Mon Sep 17 00:00:00 2001 From: Caleb Evans Date: Sun, 12 May 2019 16:09:16 -0700 Subject: [PATCH 47/73] Tokenize *args and **kwargs the same as other parameters These changes are specifically for the Python tree-sitter grammar. --- grammars/tree-sitter-python.cson | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index ec0138a..4951b02 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -111,6 +111,8 @@ scopes: '"nonlocal"': 'storage.modifier.nonlocal' 'parameters > identifier': 'variable.parameter.function' + 'parameters > list_splat > identifier': 'variable.parameter.function' + 'parameters > dictionary_splat > identifier': 'variable.parameter.function' 'default_parameter > identifier:nth-child(0)': 'variable.parameter.function' 'keyword_argument > identifier:nth-child(0)': 'variable.parameter.function' From a7b054915d438eaefb897817895f8a0d6c365ef5 Mon Sep 17 00:00:00 2001 From: Jason Rudolph Date: Fri, 24 May 2019 09:49:20 -0400 Subject: [PATCH 48/73] Prepare 0.53.2 release --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6d5e76c..c33183d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.53.1", + "version": "0.53.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 9ce904c..5c46fe7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.53.1", + "version": "0.53.2", "engines": { "atom": "*", "node": "*" From 110b32ce00a0b2965283bc49e710f0ada4efa0f5 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 18 Jun 2019 16:57:49 -0700 Subject: [PATCH 49/73] :arrow_up: tree-sitter-python --- package-lock.json | 12 ++++++------ package.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index c33183d..ac2549a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -123,9 +123,9 @@ "dev": true }, "nan": { - "version": "2.13.2", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.13.2.tgz", - "integrity": "sha512-TghvYc72wlMGMVMluVo9WRJc0mB8KxxF/gZ4YYFy7V2ZQX9l7rgbPg7vjS9mt6U5HXODVFVI2bOduCzwOMv/lw==" + "version": "2.14.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.0.tgz", + "integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==" }, "once": { "version": "1.4.0", @@ -165,9 +165,9 @@ "dev": true }, "tree-sitter-python": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/tree-sitter-python/-/tree-sitter-python-0.14.0.tgz", - "integrity": "sha512-Kcj5AUdeI4/c/JLsQV8OFI0zLrwcQ1nKoqCRr+W73Tp5SIK+Dd1ILNC5TFHPw1IqOGstcg8AH0XTeU0uq3boZg==", + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/tree-sitter-python/-/tree-sitter-python-0.15.0.tgz", + "integrity": "sha512-lOV84DUTsyab8xRfU0o8pBQOKAZPjIJsGL7q0buuORHQvvwnvy3iwF/83OGSyiNYRJzPz6gW+E1N/VgNNavMHA==", "requires": { "nan": "^2.4.0" } diff --git a/package.json b/package.json index 5c46fe7..35d00e7 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ }, "dependencies": { "atom-grammar-test": "^0.6.4", - "tree-sitter-python": "^0.14.0" + "tree-sitter-python": "^0.15.0" }, "devDependencies": { "coffeelint": "^1.10.1" From 90e245936e6aa1961ccc611c86706c13600e744f Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Tue, 18 Jun 2019 16:58:05 -0700 Subject: [PATCH 50/73] Prepare 0.53.3 release --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index ac2549a..4a6760d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.53.2", + "version": "0.53.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 35d00e7..9c08d52 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.53.2", + "version": "0.53.3", "engines": { "atom": "*", "node": "*" From b11c80cca7dab85f652b021dd175ecea49f648ef Mon Sep 17 00:00:00 2001 From: Darangi Date: Thu, 5 Dec 2019 16:42:24 +0100 Subject: [PATCH 51/73] :arrow_up:tree-sitter-python@0.15.1 --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4a6760d..bcf60ea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -165,9 +165,9 @@ "dev": true }, "tree-sitter-python": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/tree-sitter-python/-/tree-sitter-python-0.15.0.tgz", - "integrity": "sha512-lOV84DUTsyab8xRfU0o8pBQOKAZPjIJsGL7q0buuORHQvvwnvy3iwF/83OGSyiNYRJzPz6gW+E1N/VgNNavMHA==", + "version": "0.15.1", + "resolved": "https://registry.npmjs.org/tree-sitter-python/-/tree-sitter-python-0.15.1.tgz", + "integrity": "sha512-v8HUvx6JnaRNiLM2ur+T5dVEoUKanXYv8vqHWGNzjiyt+vluHKySGR7fWeQVcaotDSulDJfil4Zbye2qIPVKSA==", "requires": { "nan": "^2.4.0" } diff --git a/package.json b/package.json index 9c08d52..567cab2 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ }, "dependencies": { "atom-grammar-test": "^0.6.4", - "tree-sitter-python": "^0.15.0" + "tree-sitter-python": "^0.15.1" }, "devDependencies": { "coffeelint": "^1.10.1" From d4a8e73a4ce35aa6aa877044c508899621adf040 Mon Sep 17 00:00:00 2001 From: Darangi Date: Thu, 5 Dec 2019 16:43:11 +0100 Subject: [PATCH 52/73] Prepare v0.53.4 release --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index bcf60ea..800fb4a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.53.3", + "version": "0.53.4", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 567cab2..693e98d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.53.3", + "version": "0.53.4", "engines": { "atom": "*", "node": "*" From 3f8fa33ce8f54564576dc1db2017a7bd5327f433 Mon Sep 17 00:00:00 2001 From: illright Date: Sun, 29 Dec 2019 19:34:50 +0500 Subject: [PATCH 53/73] Add a lookahead for DELETE to avoid mistaking HTTP strings for SQL --- grammars/python.cson | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/grammars/python.cson b/grammars/python.cson index dc84094..39318ef 100644 --- a/grammars/python.cson +++ b/grammars/python.cson @@ -1643,7 +1643,7 @@ 'name': 'string.quoted.double.block.python' 'patterns': [ { - 'begin': '(?=\\s*(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|WITH))' + 'begin': '(?=\\s*(SELECT|INSERT|UPDATE|DELETE(?! \/)|CREATE|REPLACE|ALTER|WITH))' 'name': 'meta.embedded.sql' 'end': '(?=\\s*""")' 'patterns': [ @@ -1655,7 +1655,7 @@ ] } { - 'begin': '(")(?=\\s*(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|WITH))' + 'begin': '(")(?=\\s*(SELECT|INSERT|UPDATE|DELETE(?! \/)|CREATE|REPLACE|ALTER|WITH))' 'beginCaptures': '1': 'name': 'punctuation.definition.string.begin.python' @@ -2214,7 +2214,7 @@ 'name': 'string.quoted.single.block.python' 'patterns': [ { - 'begin': '(?=\\s*(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|WITH))' + 'begin': '(?=\\s*(SELECT|INSERT|UPDATE|DELETE(?! \/)|CREATE|REPLACE|ALTER|WITH))' 'end': '(?=\\s*\'\'\')' 'name': 'meta.embedded.sql' 'patterns': [ @@ -2226,7 +2226,7 @@ ] } { - 'begin': '(\')(?=\\s*(SELECT|INSERT|UPDATE|DELETE|CREATE|REPLACE|ALTER|WITH))' + 'begin': '(\')(?=\\s*(SELECT|INSERT|UPDATE|DELETE(?! \/)|CREATE|REPLACE|ALTER|WITH))' 'beginCaptures': '1': 'name': 'punctuation.definition.string.begin.python' From 681aba31aa2679e563b2a287769a367957d4479f Mon Sep 17 00:00:00 2001 From: ThatXliner <66848002+ThatXliner@users.noreply.github.com> Date: Mon, 10 Aug 2020 17:47:41 -0700 Subject: [PATCH 54/73] Added async (line 851) Added keyword async: ``` 'illegal_names': 'match': '\\b(and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield|await|async)\\b' 'name': 'invalid.illegal.name.python' ``` --- grammars/python.cson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grammars/python.cson b/grammars/python.cson index dc84094..6102851 100644 --- a/grammars/python.cson +++ b/grammars/python.cson @@ -848,7 +848,7 @@ 'generic_names': 'match': '[A-Za-z_][A-Za-z0-9_]*' 'illegal_names': - 'match': '\\b(and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield|await)\\b' + 'match': '\\b(and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield|await|async)\\b' 'name': 'invalid.illegal.name.python' 'keyword_arguments': 'begin': '\\b([a-zA-Z_][a-zA-Z_0-9]*)\\s*(=)(?!=)' From df7643256348c80d9cbc7438f99d5d8af82a7b23 Mon Sep 17 00:00:00 2001 From: sadick254 Date: Wed, 19 Aug 2020 20:39:56 +0300 Subject: [PATCH 55/73] Prepare v0.53.5 release --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 800fb4a..6b7f3c4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.53.4", + "version": "0.53.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 693e98d..930febc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.53.4", + "version": "0.53.5", "engines": { "atom": "*", "node": "*" From faf1e57ccbddbf7f7378bd085e5bff77090403cb Mon Sep 17 00:00:00 2001 From: aminya Date: Wed, 28 Oct 2020 18:17:41 -0500 Subject: [PATCH 56/73] :arrow_up: Update tree-sitter-python --- package-lock.json | 12 ++++++------ package.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6b7f3c4..06766ea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -123,9 +123,9 @@ "dev": true }, "nan": { - "version": "2.14.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.0.tgz", - "integrity": "sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==" + "version": "2.14.2", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.14.2.tgz", + "integrity": "sha512-M2ufzIiINKCuDfBSAUr1vWQ+vuVcA9kqx8JJUsbQi6yf1uGRyb7HfpdfUr5qLXf3B/t8dPvcjhKMmlfnP47EzQ==" }, "once": { "version": "1.4.0", @@ -165,9 +165,9 @@ "dev": true }, "tree-sitter-python": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/tree-sitter-python/-/tree-sitter-python-0.15.1.tgz", - "integrity": "sha512-v8HUvx6JnaRNiLM2ur+T5dVEoUKanXYv8vqHWGNzjiyt+vluHKySGR7fWeQVcaotDSulDJfil4Zbye2qIPVKSA==", + "version": "0.16.1", + "resolved": "https://registry.npmjs.org/tree-sitter-python/-/tree-sitter-python-0.16.1.tgz", + "integrity": "sha512-XUxJgecoSZwNYUD+Pfb16pjPmK16T+bqhNdGkX/pgXvaEniaeVLpZP0VSiRpBq7Dx5vaXQcTn1/2MhUxoVBCdg==", "requires": { "nan": "^2.4.0" } diff --git a/package.json b/package.json index 930febc..e7f0cb8 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ }, "dependencies": { "atom-grammar-test": "^0.6.4", - "tree-sitter-python": "^0.15.1" + "tree-sitter-python": "^0.16.1" }, "devDependencies": { "coffeelint": "^1.10.1" From ad4b9807280c9f38cb537539c43890b143188012 Mon Sep 17 00:00:00 2001 From: aminya Date: Wed, 28 Oct 2020 21:25:48 -0500 Subject: [PATCH 57/73] Update Travis linux distro --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 47ee9a1..eb88ec4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,7 +30,7 @@ git: sudo: false -dist: trusty +dist: bionic addons: apt: From 97d1eb6d7c1e39eb47717ee511412f26f077f644 Mon Sep 17 00:00:00 2001 From: aminya Date: Thu, 12 Nov 2020 08:18:44 -0600 Subject: [PATCH 58/73] GitHub Actions --- .github/workflows/ci.yml | 51 ++++++++++++++++++++++++++++++++++++++++ .travis.yml | 41 -------------------------------- README.md | 3 +-- appveyor.yml | 31 ++++-------------------- 4 files changed, 56 insertions(+), 70 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..16f1825 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,51 @@ +name: ci +on: + - pull_request + - push + +jobs: + Test: + if: "!contains(github.event.head_commit.message, '[skip ci]')" + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest + atom_channel: + - stable + - nightly + steps: + - uses: actions/checkout@v2 + - name: Cache + uses: actions/cache@v2 + with: + path: | + 'node_modules' + 'C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140' + key: ${{ runner.os }}-${{ matrix.atom_channel }}-${{ hashFiles('package.json') }} + + - uses: UziTech/action-setup-atom@v1 + with: + channel: ${{ matrix.atom_channel }} + + - name: Install Visual Studio 2015 on Windows + if: ${{ contains(matrix.os, 'windows') }} + run: | + choco install visualcpp-build-tools --version=14.0.25420.1 --ignore-dependencies -y --params "'/IncludeRequired'" + echo ::set-env name=VCTargetsPath::'C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140' + + - name: Install dependencies + run: apm install + + - name: Run tests + run: apm test + + Skip: + if: contains(github.event.head_commit.message, '[skip ci]') + runs-on: ubuntu-latest + steps: + - name: Skip CI 🚫 + run: echo skip ci diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 47ee9a1..0000000 --- a/.travis.yml +++ /dev/null @@ -1,41 +0,0 @@ -### Project specific config ### -language: generic - -env: - global: - - APM_TEST_PACKAGES="" - - ATOM_LINT_WITH_BUNDLED_NODE="true" - - matrix: - - ATOM_CHANNEL=stable - - ATOM_CHANNEL=beta - -### Generic setup follows ### -script: - - curl -s -O https://raw.githubusercontent.com/atom/ci/master/build-package.sh - - chmod u+x build-package.sh - - ./build-package.sh - -notifications: - email: - on_success: never - on_failure: change - -branches: - only: - - master - -git: - depth: 10 - -sudo: false - -dist: trusty - -addons: - apt: - packages: - - build-essential - - fakeroot - - git - - libsecret-1-dev diff --git a/README.md b/README.md index e646780..9ef6e6d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,5 @@ # Python language support in Atom -[![macOS Build Status](https://travis-ci.org/atom/language-python.svg?branch=master)](https://travis-ci.org/atom/language-python) -[![Windows Build Status](https://ci.appveyor.com/api/projects/status/hmxrb9jttjh41es9/branch/master?svg=true)](https://ci.appveyor.com/project/Atom/language-python/branch/master) +![ci](https://github.com/atom/language-python/workflows/ci/badge.svg) [![Dependency Status](https://david-dm.org/atom/language-python.svg)](https://david-dm.org/atom/language-python) Adds syntax highlighting and snippets to Python files in Atom. diff --git a/appveyor.yml b/appveyor.yml index 7d07d05..795da41 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,29 +1,6 @@ -version: "{build}" - -image: Visual Studio 2015 - -platform: x64 +# empty appveyor +build: off branches: - only: - - master - -clone_depth: 10 - -skip_tags: true - -environment: - APM_TEST_PACKAGES: - - matrix: - - ATOM_CHANNEL: stable - - ATOM_CHANNEL: beta - -install: - - ps: Install-Product node 4 - -build_script: - - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/atom/ci/master/build-package.ps1')) - -test: off -deploy: off + only: + - non-existing From 870467c070fb4eb072e2320b726fc69142882b64 Mon Sep 17 00:00:00 2001 From: Lev Chelyadinov Date: Fri, 4 Dec 2020 10:28:26 +0300 Subject: [PATCH 59/73] Add a test --- spec/python-spec.coffee | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/python-spec.coffee b/spec/python-spec.coffee index c1851d0..6ef1fba 100644 --- a/spec/python-spec.coffee +++ b/spec/python-spec.coffee @@ -750,3 +750,10 @@ describe "Python grammar", -> expect(tokens[13]).toEqual value: ')', scopes: ['source.python', 'string.quoted.double.single-line.sql.python', 'meta.embedded.sql', 'punctuation.definition.section.bracket.round.end.sql'] expect(tokens[15]).toEqual value: '"', scopes: ['source.python', 'string.quoted.double.single-line.sql.python', 'punctuation.definition.string.end.python'] expect(tokens[17]).toEqual value: '%', scopes: ['source.python', 'keyword.operator.arithmetic.python'] + + it "recognizes DELETE as an HTTP method", -> + {tokens} = grammar.tokenizeLine('"DELETE /api/v1/endpoint"') + + expect(tokens[0]).toEqual value: '"', scopes: ['source.python', 'string.quoted.single.single-line.python', 'punctuation.definition.string.begin.python'] + expect(tokens[1]).toEqual value: 'DELETE /api/v1/endpoint', scopes: ['source.python', 'string.quoted.single.single-line.python'] + expect(tokens[2]).toEqual value: '"', scopes: ['source.python', 'string.quoted.single.single-line.python', 'punctuation.definition.string.end.python'] From 64010bfc83b2d6b0824e39c87d3b0cf72a3c7650 Mon Sep 17 00:00:00 2001 From: Lev Chelyadinov Date: Fri, 4 Dec 2020 10:31:49 +0300 Subject: [PATCH 60/73] Fix the test that failed the build --- spec/python-spec.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/python-spec.coffee b/spec/python-spec.coffee index 6ef1fba..423f8c1 100644 --- a/spec/python-spec.coffee +++ b/spec/python-spec.coffee @@ -754,6 +754,6 @@ describe "Python grammar", -> it "recognizes DELETE as an HTTP method", -> {tokens} = grammar.tokenizeLine('"DELETE /api/v1/endpoint"') - expect(tokens[0]).toEqual value: '"', scopes: ['source.python', 'string.quoted.single.single-line.python', 'punctuation.definition.string.begin.python'] - expect(tokens[1]).toEqual value: 'DELETE /api/v1/endpoint', scopes: ['source.python', 'string.quoted.single.single-line.python'] - expect(tokens[2]).toEqual value: '"', scopes: ['source.python', 'string.quoted.single.single-line.python', 'punctuation.definition.string.end.python'] + expect(tokens[0]).toEqual value: '"', scopes: ['source.python', 'string.quoted.double.single-line.python', 'punctuation.definition.string.begin.python'] + expect(tokens[1]).toEqual value: 'DELETE /api/v1/endpoint', scopes: ['source.python', 'string.quoted.double.single-line.python'] + expect(tokens[2]).toEqual value: '"', scopes: ['source.python', 'string.quoted.double.single-line.python', 'punctuation.definition.string.end.python'] From ebe88306700ef0face8c9a99b5fc2a1d4e059866 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Fri, 8 Jan 2021 10:51:27 -0600 Subject: [PATCH 61/73] :arrow_up: bump tree-sitter-python to 0.17.0 --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 06766ea..d6acf3c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -165,9 +165,9 @@ "dev": true }, "tree-sitter-python": { - "version": "0.16.1", - "resolved": "https://registry.npmjs.org/tree-sitter-python/-/tree-sitter-python-0.16.1.tgz", - "integrity": "sha512-XUxJgecoSZwNYUD+Pfb16pjPmK16T+bqhNdGkX/pgXvaEniaeVLpZP0VSiRpBq7Dx5vaXQcTn1/2MhUxoVBCdg==", + "version": "0.17.0", + "resolved": "https://registry.npmjs.org/tree-sitter-python/-/tree-sitter-python-0.17.0.tgz", + "integrity": "sha512-6HaqF/1GHB0/qrkcIxYqEELsQq6bXdQxx2KnGLZhoGn5ipbAibncSuQT9f8HYbmqLZ4dIGleQzsXreY1mx2lig==", "requires": { "nan": "^2.4.0" } diff --git a/package.json b/package.json index e7f0cb8..986bde6 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ }, "dependencies": { "atom-grammar-test": "^0.6.4", - "tree-sitter-python": "^0.16.1" + "tree-sitter-python": "^0.17.0" }, "devDependencies": { "coffeelint": "^1.10.1" From d989f9aee9638ba48e2018fa81dc9a9b1b200dda Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Fri, 8 Jan 2021 11:59:34 -0600 Subject: [PATCH 62/73] Add keyword.control.return Co-Authored-By: Eric Shimizu Karbstein <17973728+GrayJack@users.noreply.github.com> --- grammars/tree-sitter-python.cson | 1 + 1 file changed, 1 insertion(+) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index 4951b02..cb1b6d1 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -177,3 +177,4 @@ scopes: '"or"': 'keyword.operator.logical.python' '"not"': 'keyword.operator.logical.python' '"is"': 'keyword.operator.logical.python' + '"->"': 'keyword.control.return' From c2b79f1aebf91c507a0b469e4d201a92c76ad95a Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Fri, 8 Jan 2021 12:00:27 -0600 Subject: [PATCH 63/73] Add punctuations Co-Authored-By: Eric Shimizu Karbstein <17973728+GrayJack@users.noreply.github.com> --- grammars/tree-sitter-python.cson | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index cb1b6d1..07d5562 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -178,3 +178,11 @@ scopes: '"not"': 'keyword.operator.logical.python' '"is"': 'keyword.operator.logical.python' '"->"': 'keyword.control.return' + + '"["': 'punctuation.definition.begin.bracket.square' + '"]"': 'punctuation.definition.end.bracket.square' + '","': 'punctuation.separator.delimiter' + '"{"': 'punctuation.section.block.begin.bracket.curly' + '"}"': 'punctuation.section.block.end.bracket.curly' + '"("': 'punctuation.section.parens.begin.bracket.round' + '")"': 'punctuation.section.parens.end.bracket.round' From 6325ed1445d53c5519e37b0597d0ae608bdb0a84 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Fri, 8 Jan 2021 12:01:25 -0600 Subject: [PATCH 64/73] Use function.def for function_definition Co-Authored-By: Eric Shimizu Karbstein <17973728+GrayJack@users.noreply.github.com> --- grammars/tree-sitter-python.cson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index 07d5562..3abe778 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -73,7 +73,7 @@ scopes: 'interpolation > "}"': 'punctuation.section.embedded' 'class_definition > identifier': 'entity.name.type.class' - 'function_definition > identifier': 'entity.name.function' + 'function_definition > identifier': 'entity.name.function.def' 'call > identifier:nth-child(0)': [ {match: '^(abs|all|any|ascii|bin|bool|breakpoint|bytearray|bytes|callable|chr|classmethod|compile|complex|delattr|dict|dir|divmod|enumerate|eval|exec|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|isinstance|issubclass|iter|len|list|locals|map|max|memoryview|min|next|object|oct|open|ord|pow|print|property|range|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|vars|zip|__import__)$', scopes: 'support.function'}, From 89351c1a3acd79e77b00474da135d7ea9f4c2e1f Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Fri, 8 Jan 2021 12:02:40 -0600 Subject: [PATCH 65/73] Use function.call for call Co-Authored-By: Eric Shimizu Karbstein <17973728+GrayJack@users.noreply.github.com> --- grammars/tree-sitter-python.cson | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index 3abe778..bfed062 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -76,8 +76,8 @@ scopes: 'function_definition > identifier': 'entity.name.function.def' 'call > identifier:nth-child(0)': [ {match: '^(abs|all|any|ascii|bin|bool|breakpoint|bytearray|bytes|callable|chr|classmethod|compile|complex|delattr|dict|dir|divmod|enumerate|eval|exec|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|isinstance|issubclass|iter|len|list|locals|map|max|memoryview|min|next|object|oct|open|ord|pow|print|property|range|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|vars|zip|__import__)$', - scopes: 'support.function'}, - 'entity.name.function' + scopes: 'support.function.call'}, + 'entity.name.function.call' ] 'call > attribute > identifier:nth-child(2)': 'entity.name.function' From b0a77d570ce7d39484b4b8d02963d618b0537585 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Fri, 8 Jan 2021 12:03:16 -0600 Subject: [PATCH 66/73] Support constructor Co-Authored-By: Eric Shimizu Karbstein <17973728+GrayJack@users.noreply.github.com> --- grammars/tree-sitter-python.cson | 1 + 1 file changed, 1 insertion(+) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index bfed062..bbbcd80 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -77,6 +77,7 @@ scopes: 'call > identifier:nth-child(0)': [ {match: '^(abs|all|any|ascii|bin|bool|breakpoint|bytearray|bytes|callable|chr|classmethod|compile|complex|delattr|dict|dir|divmod|enumerate|eval|exec|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|isinstance|issubclass|iter|len|list|locals|map|max|memoryview|min|next|object|oct|open|ord|pow|print|property|range|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|vars|zip|__import__)$', scopes: 'support.function.call'}, + {match: '^[A-Z]', scopes: 'support.type.contructor'} 'entity.name.function.call' ] 'call > attribute > identifier:nth-child(2)': 'entity.name.function' From 37c8e1d9e8bda4d875e2892d777e4b29f8218236 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Fri, 8 Jan 2021 12:15:56 -0600 Subject: [PATCH 67/73] Support lambda parameters Co-Authored-By: Eric Shimizu Karbstein <17973728+GrayJack@users.noreply.github.com> --- grammars/tree-sitter-python.cson | 1 + 1 file changed, 1 insertion(+) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index bbbcd80..7067f19 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -116,6 +116,7 @@ scopes: 'parameters > dictionary_splat > identifier': 'variable.parameter.function' 'default_parameter > identifier:nth-child(0)': 'variable.parameter.function' 'keyword_argument > identifier:nth-child(0)': 'variable.parameter.function' + 'lambda_parameters > identifier': 'variable.parameter.function' '"if"': 'keyword.control' '"else"': 'keyword.control' From 98cab1961c654b66ac60c5d57b57346983ce00fe Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Fri, 8 Jan 2021 12:09:04 -0600 Subject: [PATCH 68/73] Support typed parameters Co-Authored-By: Eric Shimizu Karbstein <17973728+GrayJack@users.noreply.github.com> --- grammars/tree-sitter-python.cson | 1 + 1 file changed, 1 insertion(+) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index 7067f19..166d657 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -117,6 +117,7 @@ scopes: 'default_parameter > identifier:nth-child(0)': 'variable.parameter.function' 'keyword_argument > identifier:nth-child(0)': 'variable.parameter.function' 'lambda_parameters > identifier': 'variable.parameter.function' + 'typed_parameter > identifier': 'variable.parameter.function' '"if"': 'keyword.control' '"else"': 'keyword.control' From 6e5de571a361d82c7c9c2fa86f6295227820273f Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Fri, 8 Jan 2021 12:13:29 -0600 Subject: [PATCH 69/73] Support self matching Co-Authored-By: Eric Shimizu Karbstein <17973728+GrayJack@users.noreply.github.com> --- grammars/tree-sitter-python.cson | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index 166d657..fa18df4 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -82,10 +82,12 @@ scopes: ] 'call > attribute > identifier:nth-child(2)': 'entity.name.function' - 'identifier': + 'identifier': [ {match: '^(BaseException|Exception|TypeError|StopAsyncIteration|StopIteration|ImportError|ModuleNotFoundError|OSError|ConnectionError|BrokenPipeError|ConnectionAbortedError|ConnectionRefusedError|ConnectionResetError|BlockingIOError|ChildProcessError|FileExistsError|FileNotFoundError|IsADirectoryError|NotADirectoryError|InterruptedError|PermissionError|ProcessLookupError|TimeoutError|EOFError|RuntimeError|RecursionError|NotImplementedError|NameError|UnboundLocalError|AttributeError|SyntaxError|IndentationError|TabError|LookupError|IndexError|KeyError|ValueError|UnicodeError|UnicodeEncodeError|UnicodeDecodeError|UnicodeTranslateError|AssertionError|ArithmeticError|FloatingPointError|OverflowError|ZeroDivisionError|SystemError|ReferenceError|BufferError|MemoryError|Warning|UserWarning|DeprecationWarning|PendingDeprecationWarning|SyntaxWarning|RuntimeWarning|FutureWarning|ImportWarning|UnicodeWarning|BytesWarning|ResourceWarning|GeneratorExit|SystemExit|KeyboardInterrupt)$' - scopes: 'support.type.exception'} + scopes: 'support.type.exception'}, + {match: '^(self)', scopes: 'entity.name.variable.self'} + ] 'attribute > identifier:nth-child(2)': 'variable.other.object.property' From 4d966074bfb6267e09416b9004f2e5770c5b9dfb Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Fri, 8 Jan 2021 12:53:27 -0600 Subject: [PATCH 70/73] Support argument list https://github.com/tree-sitter/tree-sitter-python/issues/96 --- grammars/tree-sitter-python.cson | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index fa18df4..f97ca81 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -121,6 +121,8 @@ scopes: 'lambda_parameters > identifier': 'variable.parameter.function' 'typed_parameter > identifier': 'variable.parameter.function' + 'argument_list': 'meta.method-call.python' + '"if"': 'keyword.control' '"else"': 'keyword.control' '"elif"': 'keyword.control' From 5d548707cec8c150f4844d9a1cd744dd9641c6ef Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Fri, 8 Jan 2021 12:57:51 -0600 Subject: [PATCH 71/73] use entity.name.function.definition --- grammars/tree-sitter-python.cson | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grammars/tree-sitter-python.cson b/grammars/tree-sitter-python.cson index f97ca81..4490d74 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -73,7 +73,7 @@ scopes: 'interpolation > "}"': 'punctuation.section.embedded' 'class_definition > identifier': 'entity.name.type.class' - 'function_definition > identifier': 'entity.name.function.def' + 'function_definition > identifier': 'entity.name.function.definition' 'call > identifier:nth-child(0)': [ {match: '^(abs|all|any|ascii|bin|bool|breakpoint|bytearray|bytes|callable|chr|classmethod|compile|complex|delattr|dict|dir|divmod|enumerate|eval|exec|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|isinstance|issubclass|iter|len|list|locals|map|max|memoryview|min|next|object|oct|open|ord|pow|print|property|range|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|vars|zip|__import__)$', scopes: 'support.function.call'}, From fd7182548b88405380ce05c1a52e712c20fabc47 Mon Sep 17 00:00:00 2001 From: darangi Date: Tue, 2 Feb 2021 12:15:40 +0100 Subject: [PATCH 72/73] Prepare v0.53.6 release --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index d6acf3c..d77eb13 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.53.5", + "version": "0.53.6", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 986bde6..6a079e3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "language-python", - "version": "0.53.5", + "version": "0.53.6", "engines": { "atom": "*", "node": "*" From 2d97e4b7a278df8d334c4bed701fdd4562c937bb Mon Sep 17 00:00:00 2001 From: Musa Ibrahim Date: Wed, 28 Sep 2022 11:52:01 +0100 Subject: [PATCH 73/73] add sunset message --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ef6e6d..4def7c0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,5 @@ -# Python language support in Atom +##### Atom and all repositories under Atom will be archived on December 15, 2022. Learn more in our [official announcement](https://github.blog/2022-06-08-sunsetting-atom/) + # Python language support in Atom ![ci](https://github.com/atom/language-python/workflows/ci/badge.svg) [![Dependency Status](https://david-dm.org/atom/language-python.svg)](https://david-dm.org/atom/language-python)