[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Qeustion about Ftreesit_pattern_expand
From: |
Gerd Möllmann |
Subject: |
Qeustion about Ftreesit_pattern_expand |
Date: |
Mon, 24 Jun 2024 23:26:39 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Not important, just as context: I wanted to see if igc works with
treesit Lisp objects, built with treesitter, and finally even got
grammars for C and C++ installed :-/. Font-locking didn't work in my
fork (CL packages), which I fixed.
My question:
Function Ftreesit_pattern_expand uses this to print Lisp objects:
return Fprin1_to_string (pattern, Qnil, Qt);
where prin1 prints readably, and second arg nil means add escapes as
needed to that the result can be read back, by function read.
Why is it printing readably with escapes?
I know tree-sitter doesn't understand Lisp escaping because that was my
problem with the font-locking. Or, in other words, should the second arg
be Qt for don't escape?
- Qeustion about Ftreesit_pattern_expand,
Gerd Möllmann <=