Skip to content

Commit 5d52c50

Browse files
committed
Remove unsupported null array
1 parent 659c123 commit 5d52c50

File tree

4 files changed

+71
-13
lines changed

4 files changed

+71
-13
lines changed

dsc_lib/src/functions/null.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,11 @@ mod tests {
7474
assert_eq!(result.to_string(), r#"{"key":null}"#);
7575
}
7676

77-
#[test]
78-
fn null_in_array() {
79-
let mut parser = Statement::new().unwrap();
80-
let result = parser.parse_and_execute("[createArray('value', null(), 'another')]", &Context::new()).unwrap();
81-
assert_eq!(result.to_string(), r#"["value",null,"another"]"#);
82-
}
77+
// TODO: Fix this test when createArray supports null
78+
// #[test]
79+
// fn null_in_array() {
80+
// let mut parser = Statement::new().unwrap();
81+
// let result = parser.parse_and_execute("[createArray('value', null(), 'another')]", &Context::new()).unwrap();
82+
// assert_eq!(result.to_string(), r#"["value",null,"another"]"#);
83+
// }
8384
}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
6+
[*.{json,toml,yml,gyp}]
7+
indent_style = space
8+
indent_size = 2
9+
10+
[*.js]
11+
indent_style = space
12+
indent_size = 2
13+
14+
[*.scm]
15+
indent_style = space
16+
indent_size = 2
17+
18+
[*.{c,cc,h}]
19+
indent_style = space
20+
indent_size = 4
21+
22+
[*.rs]
23+
indent_style = space
24+
indent_size = 4
25+
26+
[*.{py,pyi}]
27+
indent_style = space
28+
indent_size = 4
29+
30+
[*.swift]
31+
indent_style = space
32+
indent_size = 4
33+
34+
[*.go]
35+
indent_style = tab
36+
indent_size = 8
37+
38+
[Makefile]
39+
indent_style = tab
40+
indent_size = 8
41+
42+
[parser.c]
43+
indent_size = 2
44+
45+
[{alloc,array,parser}.h]
46+
indent_size = 2

tree-sitter-dscexpression/.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ binding.gyp linguist-generated
99
setup.py linguist-generated
1010
Makefile linguist-generated
1111
Package.swift linguist-generated
12+
13+
# Zig bindings
14+
build.zig linguist-generated
15+
build.zig.zon linguist-generated
Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
11
# Rust artifacts
22
target/
3+
Cargo.lock
34

45
# Node artifacts
56
build/
67
prebuilds/
78
node_modules/
8-
*.tgz
9+
package-lock.json
910

1011
# Swift artifacts
1112
.build/
12-
Package.swift
13+
Package.resolved
1314

1415
# Go artifacts
15-
go.sum
1616
_obj/
1717

1818
# Python artifacts
1919
.venv/
2020
dist/
2121
*.egg-info
2222
*.whl
23-
pyproject.toml
24-
setup.py
2523

2624
# C artifacts
2725
*.a
@@ -30,7 +28,13 @@ setup.py
3028
*.dylib
3129
*.dll
3230
*.pc
33-
Makefile
31+
*.exp
32+
*.lib
33+
34+
# Zig artifacts
35+
.zig-cache/
36+
zig-cache/
37+
zig-out/
3438

3539
# Example dirs
3640
/examples/*/
@@ -40,4 +44,7 @@ Makefile
4044
*.obj
4145
*.o
4246

43-
.editorconfig
47+
# Archives
48+
*.tar.gz
49+
*.tgz
50+
*.zip

0 commit comments

Comments
 (0)