Komodo / KomodoEdit

Komodo Edit is a fast and free multi-language code editor. Written in JS, Python, C++ and based on the Mozilla platform.
http://www.komodoide.com/komodo-edit
Other
2.16k stars 302 forks source link

Javascript parser thinks function definitions are on the line of the opening tag #2745

Open Naatan opened 7 years ago

Naatan commented 7 years ago
1. var foo = function()
2. {

The symbol will be on line 2 due to that being where the open tag is. The line number should be that of where the function name itself is. This may apply to other languages also.

mitchell-as commented 7 years ago

Note: This is how it was in Codeintel v2 as well. This can probably be better addressed when we redo our JS parser.

Naatan commented 7 years ago

@Kronuz is working on an ECMASscript 6 parser which I'd love to evaluate and inherit for 11.1, it might resolve this also.