mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
* fix: is_in_node_range now includes end line and col
This fixes no indents at the end of python files
Refs #1136
* update scala highlights (#1760)
* add type highlights
* add call expression highlights
* add function definition highlights
* add expression highlights
* add literals highlights
* add operator highlights
* add punctuation highlights
* add comment highlights
Co-authored-by: Stevan Milic <stevan.milic@tradecore.com>
* test: Add unit tests
* Revert "fix: is_in_node_range now includes end line and col"
This reverts commit 5a721fef56.
* refactor test
* apply stylua
* fix luacheck
* update `describe` text
* smallfix
Co-authored-by: Stevan Milic <stevan.milic@yahoo.com>
Co-authored-by: Stevan Milic <stevan.milic@tradecore.com>
18 lines
507 B
Bash
Executable file
18 lines
507 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
HERE="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
|
|
cd $HERE/..
|
|
|
|
run() {
|
|
nvim --headless --noplugin -u scripts/minimal_init.lua \
|
|
-c "PlenaryBustedDirectory $1 { minimal_init = './scripts/minimal_init.lua' }"
|
|
}
|
|
|
|
if [[ $1 = '--summary' ]]; then
|
|
# really simple results summary by filtering plenary busted output
|
|
run tests/indent/ 2> /dev/null | grep -E '^\S*(Success|Fail(ed)?|Errors?)'
|
|
elif [[ $1 = '--unit' ]]; then
|
|
run tests/unit
|
|
else
|
|
run tests/indent/
|
|
fi
|