[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Scanning parenthesis in string/comment
From: |
Yuan Fu |
Subject: |
Scanning parenthesis in string/comment |
Date: |
Sun, 22 Jan 2023 09:15:49 -0800 |
I’m writing an expand-region-like function, which expands region by logical
entities, like word-at-point, list-at-point, etc. Say I have this string
"Filter out invalid regions in REGIONS regarding ORIG.
ORIG is the current position. Each region is (BEG . END).”
And point is at the opening parenthesis, how do I detect this balanced
parenthesis pair and expand the region over it? syntax-pass and forward-list
only works with lists outside of strings and comments, IIUC.
Yuan
- Scanning parenthesis in string/comment,
Yuan Fu <=