GNU Info

Info Node: (elisp)Syntax Properties

(elisp)Syntax Properties


Next: Motion and Syntax Prev: Syntax Table Functions Up: Syntax Tables
Enter node , (file) or (file)node

Syntax Properties
=================

   When the syntax table is not flexible enough to specify the syntax
of a language, you can use `syntax-table' text properties to override
the syntax table for specific character occurrences in the buffer.
Note: Text Properties.

   The valid values of `syntax-table' text property are:

SYNTAX-TABLE
     If the property value is a syntax table, that table is used
     instead of the current buffer's syntax table to determine the
     syntax for this occurrence of the character.

`(SYNTAX-CODE . MATCHING-CHAR)'
     A cons cell of this format specifies the syntax for this
     occurrence of the character.  (Note: Syntax Table Internals)

`nil'
     If the property is `nil', the character's syntax is determined from
     the current syntax table in the usual way.

 - Variable: parse-sexp-lookup-properties
     If this is non-`nil', the syntax scanning functions pay attention
     to syntax text properties.  Otherwise they use only the current
     syntax table.


automatically generated by info2www version 1.2.2.9