branch: externals/bnf-mode
commit d8cb802e2f8b724868af7d96c7d1639a8529ffce
Author: Serghei Iakovlev <[email protected]>
Commit: Serghei Iakovlev <[email protected]>

    Amended tests
---
 test/test-bnf-mode-font-lock.el | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/test/test-bnf-mode-font-lock.el b/test/test-bnf-mode-font-lock.el
index 7c3489f..f4d677e 100644
--- a/test/test-bnf-mode-font-lock.el
+++ b/test/test-bnf-mode-font-lock.el
@@ -59,8 +59,12 @@
               ("stm" function-name "::=" constant "decl" builtin
                "; foo" comment))))
 
-
-  ;; TODO(sergei): Add test for bnf-mode-algol-comments-style
+  (it "fontifies line comments using ALGOL style"
+    (setq-default bnf-mode-algol-comments-style t)
+    (expect "; comment here"
+            :to-be-fontified-as
+            '(("; comment here" comment)))
+    (setq-default bnf-mode-algol-comments-style nil))
 
   (it "does not mix terminals and nonterminals"
     (expect "<stm> ::= <decl>

Reply via email to