mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Ruby singleton methods (`def x.y ... end`) weren't covered in the list
of locals. In addition, instance methods didn't support names that are
capitalised (`def Integer ... end`).
This commit ensures that both instance and singleton methods are
supported, and that both support identifiers and constants as their
names. This ensures that all following examples are covered:
def foo; end
def FOO; end
def self.bar; end
def self.BAR; end
|
||
|---|---|---|
| .. | ||
| folds.scm | ||
| highlights.scm | ||
| indents.scm | ||
| injections.scm | ||
| locals.scm | ||