From 35553bef08abeec6535edb857fca747632523f98 Mon Sep 17 00:00:00 2001 From: Piotr Semenov Date: Thu, 25 Apr 2024 23:49:18 +0400 Subject: [PATCH] chore: operators \' and \~ are context-free in PARI/GP + turn test filenames into lower case --- src/operators.YAML-tmLanguage | 2 +- tests/{Comments.test.gp => comments.test.gp} | 0 tests/{Functions.test.gp => functions.test.gp} | 0 tests/{Literals.test.gp => literals.test.gp} | 0 tests/{Operators.test.gp => operators.test.gp} | 5 +++-- 5 files changed, 4 insertions(+), 3 deletions(-) rename tests/{Comments.test.gp => comments.test.gp} (100%) rename tests/{Functions.test.gp => functions.test.gp} (100%) rename tests/{Literals.test.gp => literals.test.gp} (100%) rename tests/{Operators.test.gp => operators.test.gp} (87%) diff --git a/src/operators.YAML-tmLanguage b/src/operators.YAML-tmLanguage index 92a56bb..fd30386 100644 --- a/src/operators.YAML-tmLanguage +++ b/src/operators.YAML-tmLanguage @@ -35,5 +35,5 @@ repository: match: '(\~)' name: keyword.operator.transpose - - match: "[\\b\\)](\\')" + match: "(\\')" name: keyword.operator.derivative diff --git a/tests/Comments.test.gp b/tests/comments.test.gp similarity index 100% rename from tests/Comments.test.gp rename to tests/comments.test.gp diff --git a/tests/Functions.test.gp b/tests/functions.test.gp similarity index 100% rename from tests/Functions.test.gp rename to tests/functions.test.gp diff --git a/tests/Literals.test.gp b/tests/literals.test.gp similarity index 100% rename from tests/Literals.test.gp rename to tests/literals.test.gp diff --git a/tests/Operators.test.gp b/tests/operators.test.gp similarity index 87% rename from tests/Operators.test.gp rename to tests/operators.test.gp index 7696458..17be978 100644 --- a/tests/Operators.test.gp +++ b/tests/operators.test.gp @@ -32,5 +32,6 @@ [1, 2, 3; 4, 5, 6]~ ## ^ source.parigp keyword.operator.transpose - ('x^2 + 1)' -## ^ source.parigp keyword.operator.derivative + [('x^2 + 1)', 1; 1, 'x]' +## ^ source.parigp keyword.operator.derivative +## ^ source.parigp keyword.operator.derivative