Closed t9md closed 6 years ago
WIP, Very rough state.
For #1095
Get function range of cursor position contained, by checking node.type of node.parent recursively up to rootNode.
node.type
node.parent
inner-function
[x] More language suport
atom.grammars.treeSitterGrammarsById
# TODO 'source.c', 'source.cpp', 'source.ts', 'source.flow'
'source.js', 'source.python', 'source.shell', 'source.go', 'source.ruby',
'source.js.regexp', 'text.html.basic', 'text.html.ejs', 'text.html.erb',
test
class ClassName def test puts "hello" end end
WIP, Very rough state.
For #1095
Get function range of cursor position contained, by checking
node.type
ofnode.parent
recursively up to rootNode.TODO
inner-function
.[x] More language suport
atom.grammars.treeSitterGrammarsById
DONE
'source.js', 'source.python', 'source.shell', 'source.go', 'source.ruby',
SKIP
'source.js.regexp', 'text.html.basic', 'text.html.ejs', 'text.html.erb',
Skip unfoldable inline-function(??)decide don't skip to support variety of style of func declarationtest
when cursor is at very beginning of 2nd line.