From 9e0b5e7f0d148963d6ec71c48cec1a3f8607d619 Mon Sep 17 00:00:00 2001 From: zc he Date: Wed, 5 Feb 2025 20:58:55 +0800 Subject: [PATCH] feat(nu)!: added some new operators, removed deprecated keyword `register` (#7620) --- lockfile.json | 2 +- queries/nu/highlights.scm | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/lockfile.json b/lockfile.json index fbae30f63..2e7d30e3a 100644 --- a/lockfile.json +++ b/lockfile.json @@ -510,7 +510,7 @@ "revision": "14e6da1627aaef21d2b2aa0c37d04269766dcc1d" }, "nu": { - "revision": "b51db01e154fac33eda5b289a6c7751c09568f6d" + "revision": "d0b26e45525016ef8e6f2ced05852437c06a00ca" }, "objc": { "revision": "181a81b8f23a2d593e7ab4259981f50122909fda" diff --git a/queries/nu/highlights.scm b/queries/nu/highlights.scm index ecf7280c9..90a434eff 100644 --- a/queries/nu/highlights.scm +++ b/queries/nu/highlights.scm @@ -9,7 +9,6 @@ "source" "source-env" "overlay" - "register" ] @keyword [ @@ -169,6 +168,20 @@ file_path: (val_string) @variable.parameter "err+out>" "o+e>" "out+err>" + "o>>" + "out>>" + "e>>" + "err>>" + "e+o>>" + "err+out>>" + "o+e>>" + "out+err>>" + "e>|" + "err>|" + "e+o>|" + "err+out>|" + "o+e>|" + "out+err>|" ] @operator [ @@ -183,6 +196,8 @@ file_path: (val_string) @variable.parameter "bit-shr" "in" "not-in" + "has" + "not-has" "starts-with" "ends-with" "not"