diff --git a/syntax/just.vim b/syntax/just.vim index 6e0e907..2db9874 100644 --- a/syntax/just.vim +++ b/syntax/just.vim @@ -274,6 +274,8 @@ syn match justConditionalOperator "\V=~" syn match justOperator "\V+" syn match justOperator "\V/" +syn match justOperator "\V&&" +syn match justOperator "\V||" syn keyword justConstant \ HEX HEXLOWER HEXUPPER diff --git a/tests/cases/script.html b/tests/cases/unstable.html similarity index 75% rename from tests/cases/script.html rename to tests/cases/unstable.html index bcf54d0..0d74452 100644 --- a/tests/cases/script.html +++ b/tests/cases/unstable.html @@ -1,3 +1,5 @@ +set unstable + [script: 'python3'] python_info: import platform @@ -7,3 +9,5 @@ nested_justfile: foo: pwd + +foo := 'foo' && '' || 'foo' diff --git a/tests/cases/script.just b/tests/cases/unstable.just similarity index 81% rename from tests/cases/script.just rename to tests/cases/unstable.just index 872a71c..4373fd7 100644 --- a/tests/cases/script.just +++ b/tests/cases/unstable.just @@ -1,3 +1,5 @@ +set unstable + [script: 'python3'] python_info: import platform @@ -7,3 +9,5 @@ python_info: nested_justfile: foo: pwd + +foo := 'foo' && '' || 'foo'