From aeb0e32db17e4677e6aaa1482b81908ecba32e52 Mon Sep 17 00:00:00 2001 From: Ievgenii Meshcheriakov Date: Tue, 24 Dec 2019 00:29:26 +0100 Subject: [PATCH] Add injectionRegex to the tree-sitter grammar This allows to use this grammar from other tree-sitter grammars. See also: https://github.com/atom/atom/pull/17551 --- 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 4951b02..20180e4 100644 --- a/grammars/tree-sitter-python.cson +++ b/grammars/tree-sitter-python.cson @@ -24,6 +24,8 @@ fileTypes: [ 'wsgi' ] +injectionRegex: '^py$|python|Python' + folds: [ { type: ['if_statement']