1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-25 23:10:47 -08:00
emacs/test/src
Noam Postavsky 201dfe3118 Fix comment detection on open parens
Characters having both open paren syntax and comment start syntax were
being detected as open parens even when they should have been part a
comment starter (Bug#24870).

* src/syntax.c (in_2char_comment_start): New function, extracted from
`scan_sexps_forward'.
(scan_sexps_forward): Add check for a 2-char comment starter before the
loop.  Inside the loop, do that check after incrementing the 'from'
character index.  Move the single char comment syntax cases into the
switch instead of special casing them before.
* test/src/syntax-tests.el (parse-partial-sexp-paren-comments):
(parse-partial-sexp-continue-over-comment-marker): New tests.
2017-01-23 19:28:30 -05:00
..
regex-resources
alloc-tests.el
buffer-tests.el
callproc-tests.el
chartab-tests.el
cmds-tests.el
coding-tests.el
data-tests.el
decompress-tests.el
doc-tests.el
editfns-tests.el
eval-tests.el Check that variable lists are actually lists 2017-01-19 17:17:50 +01:00
fns-tests.el
font-tests.el
inotify-tests.el
keymap-tests.el
lread-tests.el
marker-tests.el
minibuf-tests.el
print-tests.el
process-tests.el
regex-tests.el Add support for Unicode whitespace in [:blank:] 2017-01-06 20:12:48 +01:00
syntax-tests.el Fix comment detection on open parens 2017-01-23 19:28:30 -05:00
textprop-tests.el
thread-tests.el Rudimentary error handling for non-main threads 2017-01-18 18:00:16 +02:00
undo-tests.el
xml-tests.el