yitzchak / tree-sitter-latex

LaTeX grammar for tree-sitter
MIT License
11 stars 5 forks source link

Minor cleaning #41

Closed Aerijo closed 5 years ago

Aerijo commented 5 years ago

Just a couple of style and redundant code changes (I imagine there was some reason at one point for declaring a rule to conflict with itself...).

Also, I was wondering the reason for

Array.prototype.slice.call(arguments, 2))

over

arguments.slice(2)

(and similar with seq.apply(null, ...) vs seq(...).

yitzchak commented 5 years ago

arguments is not actually an array, so slice won't work. A better solution would probably to use rest parameters.