[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode 3d1122b 116/385: notes on regexps
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode 3d1122b 116/385: notes on regexps |
Date: |
Tue, 5 Oct 2021 23:59:13 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit 3d1122bb30c7aa9688edde8d6bf2311e234aaf49
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
notes on regexps
---
haskell-tng-smie.el | 7 +++++--
haskell-tng-syntax.el | 4 ++++
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/haskell-tng-smie.el b/haskell-tng-smie.el
index 5fd149e..0e381aa 100644
--- a/haskell-tng-smie.el
+++ b/haskell-tng-smie.el
@@ -194,8 +194,11 @@ current line."
;; 2. exposing the parse tree so that s-expression navigation could be
;; implemented and tests could be easier to write.
;;
-;; 3. if the Emacs regexps allowed arbitrary zero length matches, especially if
-;; syntax "categories" were allowed.
+;; 3. if the Emacs regexps allowed arbitrary zero-width matches, especially if
+;; syntax "categories" were allowed. i.e. in the Java regexp engine these
are
+;; (?=X) (?!X) (?<=X) (?<!X) where X can be an Emacs syntax category. A
+;; limitation with Emacs regexps is that they only support word-start,
+;; word-end, symbol-start and symbol-end zero-width matchers.
;;
;; 4. ambiguous tokens. e.g. the word "via" is a keyword in a specific
location,
;; but can otherwise be used as a varid. I'd like to be able to lex it as
(or
diff --git a/haskell-tng-syntax.el b/haskell-tng-syntax.el
index 4946f76..205d42a 100644
--- a/haskell-tng-syntax.el
+++ b/haskell-tng-syntax.el
@@ -44,6 +44,10 @@
;; letter)
(modify-syntax-entry ?_ "w" table)
+ ;; TODO consider using categories more heavily, which would involve doing
+ ;; lexing here. It would make the fontification regexps simpler and faster,
+ ;; and would be reused by the SMIE lexer.
+
;; some special (treated like punctuation)
(--each (string-to-list ",;")
(modify-syntax-entry it "." table))
- [nongnu] elpa/haskell-tng-mode c42b5c5 338/385: use url-copy-path instead of shelling out, (continued)
- [nongnu] elpa/haskell-tng-mode c42b5c5 338/385: use url-copy-path instead of shelling out, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 8405852 351/385: document bugs and ideas, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode f429326 327/385: thots, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 8bb3c34 363/385: the in-memory cache doesn't have to cache nil, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode f5977b6 339/385: bugfix for source downloading, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 9359c7b 349/385: cl-loop, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode f5d76fc 348/385: tidy docs, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 3b37524 360/385: bugfix for qualified imports when the cache was bad, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode fe2b164 372/385: fix the build, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 63225d5 374/385: use .ghc.path to find hsinspect, build tool agnostic, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 3d1122b 116/385: notes on regexps,
ELPA Syncer <=
- [nongnu] elpa/haskell-tng-mode c3793b2 176/385: canonical until macro, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode b7cb5b9 214/385: starting to create imenu, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 5306ae2 217/385: fix type faces with constraints, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 5f81d6b 219/385: bump python version, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 8f4d7fc 225/385: advice around smartparens workaround, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 4cbf702 205/385: move third party deps to -contrib, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 3ff278e 227/385: ability to not continue comments, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode dbcef71 235/385: workaround the env file situation, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 5892c04 232/385: small things, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 44dc467 248/385: notes on motivation, contributing and collaboration, ELPA Syncer, 2021/10/06