[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/bnf-mode 3d5c4fd 30/36: Cleaned up comments syntax prop
From: |
Stefan Monnier |
Subject: |
[elpa] externals/bnf-mode 3d5c4fd 30/36: Cleaned up comments syntax propertize for ALGOL 60 style |
Date: |
Wed, 17 Mar 2021 18:40:19 -0400 (EDT) |
branch: externals/bnf-mode
commit 3d5c4fd140526f52238c0fd60c82a590d538b84b
Author: Serghei Iakovlev <egrep@protonmail.ch>
Commit: Serghei Iakovlev <egrep@protonmail.ch>
Cleaned up comments syntax propertize for ALGOL 60 style
---
bnf-mode.el | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/bnf-mode.el b/bnf-mode.el
index e67ec27..6b54128 100644
--- a/bnf-mode.el
+++ b/bnf-mode.el
@@ -175,11 +175,9 @@ See `rx' documentation for more information about REGEXPS
param."
(modify-syntax-entry ?\> ")<" table)
;; Comments setup
- (if bnf-mode-algol-comments-style
- (modify-syntax-entry ?\; ">" table)
- (progn
- (modify-syntax-entry ?\; "<" table)
- (modify-syntax-entry ?\n ">" table)))
+ (unless bnf-mode-algol-comments-style
+ (modify-syntax-entry ?\; "<" table)
+ (modify-syntax-entry ?\n ">" table))
table)
"Syntax table in use in `bnf-mode' buffers.")
@@ -187,8 +185,7 @@ See `rx' documentation for more information about REGEXPS
param."
(defconst bnf--syntax-propertize
(syntax-propertize-rules
;; Fontify comments in ALGOL 60 style.
- ("\\(?:begin\\s-+\\|;\\s-*\\)\\(comment\\)\\(;\\)" (1 "<") (2 ">"))
- ("\\(?:begin\\s-+\\|;\\s-*\\)\\(comment\\)\\s-+[^;]*\\(;\\)" (1 "<") (2
">")))
+ ("\\(?:begin\\s-+\\|;\\s-*\\)\\(comment\\)[^;]*\\(;\\)" (1 "<") (2 ">")))
"Apply syntax table properties to special constructs.
Provide a macro to apply syntax table properties to comments in ALGOL 60
style. Will be used only if `bnf-mode-algol-comments-style' is set to t.")
- [elpa] externals/bnf-mode cd9082a 05/36: Rearrange Makefile variables to correct order of them, (continued)
- [elpa] externals/bnf-mode cd9082a 05/36: Rearrange Makefile variables to correct order of them, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 05287d9 11/36: Merge pull request #12 from sergeyklay/feature/buttercup, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 99a45b6 12/36: Code cleanup, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 164101e 13/36: Merge pull request #13 from sergeyklay/feature/buttercup, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode e744d8a 15/36: HTTPS everywhere, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 9d89e81 07/36: Rephrase docs, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 7e6c3c0 08/36: Amended development dependencies, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 8e69700 18/36: Merge pull request #14 from sergeyklay/minor-fixes, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 0bbd059 19/36: Added abbreviation table used in bnf-mode buffers, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode dd6fae4 23/36: Added mised define-abbrev-table call, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 3d5c4fd 30/36: Cleaned up comments syntax propertize for ALGOL 60 style,
Stefan Monnier <=
- [elpa] externals/bnf-mode 5b223e8 34/36: Provide canonical BNF sytax, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 1b4f75f 06/36: Add field containing commit SHA expanded during archive creation, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 8799c4a 09/36: Add a workaround for ert-runner to work with Emacs > 26, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode d697e0a 10/36: Migrate tests to use buttercup, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 4ba8d28 14/36: Load undercover first to improve coverage report, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 62238ee 16/36: Cleaned up Makefile, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode a3b6d86 21/36: Update change log, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 8948987 20/36: Rename bnf-test-face-at => bnf-get-face-at, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode 2756c7c 26/36: Use default abbrev table provided by define-derived-mode, Stefan Monnier, 2021/03/17
- [elpa] externals/bnf-mode b9a8446 25/36: Refactor test to use shorten font lock helpers, Stefan Monnier, 2021/03/17