'font-lock-doc-face
'font-lock-string-face))
- (ignore-interpolation (not
- (seq-some
- (lambda (feats) (memq 'string-interpolation feats))
- (seq-take treesit-font-lock-feature-list
- (treesit--compute-font-lock-level treesit-font-lock-level)))))
+ (ignore-interpolation
+ (not (seq-some
+ (lambda (feats) (memq 'string-interpolation feats))
+ (seq-take treesit-font-lock-feature-list
+ (if (fboundp 'treesit--compute-font-lock-level)
+ (treesit--compute-font-lock-level
+ treesit-font-lock-level)
+ treesit-font-lock-level)))))
;; If interpolation is enabled, highlight only
;; string_start/string_content/string_end children. Do not
;; touch interpolation node that can occur inside of the