diff --git a/.editorconfig b/.editorconfig index d3a8b5b..0463d52 100644 --- a/.editorconfig +++ b/.editorconfig @@ -2,7 +2,6 @@ root = true [*] charset = utf-8 -end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true diff --git a/.gitattributes b/.gitattributes index 3f91ed6..3962906 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,4 +1,4 @@ -* text eol=lf +* text=auto eol=lf examples/crlf-line-endings.py eol=crlf examples/mojo2-grammar-crlf.py eol=crlf diff --git a/.gitignore b/.gitignore index ce6873a..44c1266 100644 --- a/.gitignore +++ b/.gitignore @@ -1,23 +1,26 @@ # Rust artifacts -/Cargo.lock -/target/ +Cargo.lock +target/ # Node artifacts -/build/ -/node_modules/ +build/ +prebuilds/ +node_modules/ +*.tgz # Swift artifacts -/.build/ +.build/ + +# Go artifacts +go.sum +_obj/ # Mojo artifacts -/dist/ +.venv/ +dist/ *.egg-info *.whl -# Zig artifacts -/zig-cache/ -/zig-out/ - # C artifacts *.a *.so @@ -30,7 +33,6 @@ /examples/*/ # Grammar volatiles -dsl.d.ts *.wasm *.obj *.o diff --git a/bindings/python/build/lib/tree_sitter_mojo/__init__.py b/bindings/python/build/lib/tree_sitter_mojo/__init__.py deleted file mode 100644 index 8d85193..0000000 --- a/bindings/python/build/lib/tree_sitter_mojo/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -from ._tree_sitter_mojo import lib as _lib, ffi as _ffi - -def language(): - """Get the tree-sitter language for this grammar.""" - return int(_ffi.cast("uintptr_t", _lib.tree_sitter_mojo())) diff --git a/runtime/queries/mojo/highlights.scm b/runtime/queries/mojo/highlights.scm index 20842ae..c981e11 100644 --- a/runtime/queries/mojo/highlights.scm +++ b/runtime/queries/mojo/highlights.scm @@ -226,9 +226,11 @@ [ "and" "or" + "not in" "in" "not" "del" + "is not" "is" ] @keyword.operator