mirror of
https://github.com/HiPhish/rainbow-delimiters.nvim.git
synced 2024-09-16 14:24:05 +02:00
fix: new queries for java
and lua
This commit is contained in:
parent
739a034046
commit
3aec5abf6d
6 changed files with 32 additions and 10 deletions
|
@ -28,6 +28,9 @@ Added
|
|||
- `inferred_parameters`
|
||||
- `parenthesized_expression`
|
||||
- `resource_specification`
|
||||
- `cast_expression`
|
||||
- Missing patterns for Lua:
|
||||
- `field`
|
||||
- Missing patterns for Rust:
|
||||
- `array_type`
|
||||
|
||||
|
|
|
@ -30,6 +30,10 @@
|
|||
"(" @delimiter
|
||||
")" @delimiter @sentinel) @container
|
||||
|
||||
(cast_expression
|
||||
"(" @delimiter
|
||||
")" @delimiter @sentinel) @container
|
||||
|
||||
(inferred_parameters
|
||||
"(" @delimiter
|
||||
")" @delimiter @sentinel) @container
|
||||
|
|
|
@ -63,3 +63,7 @@
|
|||
(bracket_index_expression
|
||||
"[" @delimiter
|
||||
"]" @delimiter @sentinel) @container
|
||||
|
||||
(field
|
||||
"[" @delimiter
|
||||
"]" @delimiter @sentinel) @container
|
||||
|
|
|
@ -17,3 +17,7 @@
|
|||
(bracket_index_expression
|
||||
"[" @delimiter
|
||||
"]" @delimiter @sentinel) @container
|
||||
|
||||
(field
|
||||
"[" @delimiter
|
||||
"]" @delimiter @sentinel) @container
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
@Author(name="John Doe")
|
||||
@Author(name = "John Doe")
|
||||
public class HelloWorld {
|
||||
// Constructor body
|
||||
public HelloWorld() {
|
||||
}
|
||||
// Constructor body
|
||||
public HelloWorld() {
|
||||
}
|
||||
|
||||
// Method with formal parameters
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Hello, world!");
|
||||
System.out.println(args[0]);
|
||||
}
|
||||
// Method with formal parameters
|
||||
public static void main(String[] args) {
|
||||
System.out.println("Hello, world!");
|
||||
System.out.println(args[0]);
|
||||
}
|
||||
|
||||
public static void printList(List<List<List<T>>> l) {
|
||||
public static void printList(List<List<List<T>>> l) {
|
||||
// Array initializer
|
||||
String[] names = {"Alice", "Bob", "Carol", "Dan"};
|
||||
// Multi-dimensional dimensions and a dimensions expression
|
||||
|
@ -57,5 +57,8 @@ public class HelloWorld {
|
|||
} catch (IOException e) {
|
||||
System.out.println(e);
|
||||
}
|
||||
|
||||
double d = 13.37;
|
||||
int i = (int) d; // cast expression
|
||||
}
|
||||
}
|
||||
|
|
|
@ -60,3 +60,7 @@ print(one[one[one[1]]])
|
|||
vim.cmd [[
|
||||
echo a(b(c(d(e(f())))))
|
||||
]]
|
||||
|
||||
local tbl = {
|
||||
["highlight me"] = {}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue