Hacker News new | past | comments | ask | show | jobs | submit login

Since it's for a code editor and using trees, I wonder if directly using an AST would be a good idea. You don't need to store strings for keywords like "function" or "while", and you get syntax highlight and formatting basically for free.



An AST is dependent on the Language Server though and thus not available for every file by default.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: