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
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
4cac2fc3
Commit
4cac2fc3
authored
Feb 02, 2003
by
Andreas Schwab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(font-lock-match-c-style-declaration-item-and-skip-to-next):
Don't require underscore in word before double open-paren.
parent
d9c8518d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lisp/font-lock.el
lisp/font-lock.el
+2
-2
No files found.
lisp/font-lock.el
View file @
4cac2fc3
...
@@ -1740,7 +1740,7 @@ Does not move further than LIMIT.
...
@@ -1740,7 +1740,7 @@ Does not move further than LIMIT.
The expected syntax of a declaration/definition item is `word' (preceded by
The expected syntax of a declaration/definition item is `word' (preceded by
optional whitespace and `*' characters and proceeded by optional whitespace)
optional whitespace and `*' characters and proceeded by optional whitespace)
optionally followed by a `('. Everything following the item (but belonging to
optionally followed by a `('. Everything following the item (but belonging to
it) is expected to b
y
skip-able by `scan-sexps', and items are expected to be
it) is expected to b
e
skip-able by `scan-sexps', and items are expected to be
separated with a `,' and to be terminated with a `;'.
separated with a `,' and to be terminated with a `;'.
Thus the regexp matches after point: word (
Thus the regexp matches after point: word (
...
@@ -1759,7 +1759,7 @@ This function could be MATCHER in a MATCH-ANCHORED `font-lock-keywords' item."
...
@@ -1759,7 +1759,7 @@ This function could be MATCHER in a MATCH-ANCHORED `font-lock-keywords' item."
(
let
((
pos
(
point
)))
(
let
((
pos
(
point
)))
(
skip-chars-backward
" \t\n"
)
(
skip-chars-backward
" \t\n"
)
(
skip-syntax-backward
"w"
)
(
skip-syntax-backward
"w"
)
(
unless
(
looking-at
"\\(\\sw+\\)[ \t\n]*\\sw
*_\\sw*[ \t\n]*\\((
\\)?"
)
(
unless
(
looking-at
"\\(\\sw+\\)[ \t\n]*\\sw
+[ \t\n]*\\(((?
\\)?"
)
;; Looks like it was something else, so go back to where we
;; Looks like it was something else, so go back to where we
;; were and reset the match data by rematching.
;; were and reset the match data by rematching.
(
goto-char
pos
)
(
goto-char
pos
)
...
...
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