tree-sitter-kotlin
tree-sitter-kotlin copied to clipboard
refactor(scanner): code cleanup
- Use local import for
parser.h - Use the new built-in array API
- Define
DELIMITER_LENGTHconstant - Mark simple functions as
inline - Remove functions that are only used once
- Remove rarely used
mark_endfunction - Simplify
scan_whitespace_and_commentsfunction - Use bitwise and instead of modulo
- Various codestyle improvements
Hello? :)
This looks good to me, but I'd prefer @fwcd to merge this. In the meanwhile can you please rebase on master there are a bunch of things changed and versions upgraded since you original sent this PR
Thanks!