Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c4ee45e5
Commit
c4ee45e5
authored
Jun 23, 1992
by
Richard M. Stallman
Browse files
*** empty log message ***
parent
406a57c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/syntax.h
src/syntax.h
+7
-7
No files found.
src/syntax.h
View file @
c4ee45e5
...
...
@@ -49,13 +49,13 @@ enum syntaxcode
};
#define SYNTAX(c) \
((enum syntaxcode) (XINT (XVECTOR (current_buffer->syntax_table)->contents[
c
]) & 0377))
((enum syntaxcode) (XINT (XVECTOR (current_buffer->syntax_table)->contents[
(unsigned char) (c)
]) & 0377))
/* The next 8 bits of the number is a character,
the matching delimiter in the case of Sopen or Sclose. */
#define SYNTAX_MATCH(c) \
((XINT (XVECTOR (current_buffer->syntax_table)->contents[
c
]) >> 8) & 0377)
((XINT (XVECTOR (current_buffer->syntax_table)->contents[
(unsigned char) (c)
]) >> 8) & 0377)
/* Then there are five single-bit flags that have the following meanings:
1. This character is the first of a two-character comment-start sequence.
...
...
@@ -67,19 +67,19 @@ enum syntaxcode
and whose second character has flag 2 will be interpreted as a comment start. */
#define SYNTAX_COMSTART_FIRST(c) \
((XINT (XVECTOR (current_buffer->syntax_table)->contents[
c
]) >> 16) & 1)
((XINT (XVECTOR (current_buffer->syntax_table)->contents[
(unsigned char) (c)
]) >> 16) & 1)
#define SYNTAX_COMSTART_SECOND(c) \
((XINT (XVECTOR (current_buffer->syntax_table)->contents[
c
]) >> 17) & 1)
((XINT (XVECTOR (current_buffer->syntax_table)->contents[
(unsigned char) (c)
]) >> 17) & 1)
#define SYNTAX_COMEND_FIRST(c) \
((XINT (XVECTOR (current_buffer->syntax_table)->contents[
c
]) >> 18) & 1)
((XINT (XVECTOR (current_buffer->syntax_table)->contents[
(unsigned char) (c)
]) >> 18) & 1)
#define SYNTAX_COMEND_SECOND(c) \
((XINT (XVECTOR (current_buffer->syntax_table)->contents[
c
]) >> 19) & 1)
((XINT (XVECTOR (current_buffer->syntax_table)->contents[
(unsigned char) (c)
]) >> 19) & 1)
#define SYNTAX_PREFIX(c) \
((XINT (XVECTOR (current_buffer->syntax_table)->contents[
c
]) >> 20) & 1)
((XINT (XVECTOR (current_buffer->syntax_table)->contents[
(unsigned char) (c)
]) >> 20) & 1)
/* This array, indexed by a character, contains the syntax code which that
character signifies (as a char). For example,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment