Changeset 92ced6805523ab68e24040f05770286014a06acb
- Timestamp:
- 06/02/2008 01:10:04 PM
(7 months ago)
- Author:
- mitchell <mitchell@frost.(none)>
- git-committer:
- mitchell <mitchell@frost.(none)> 1212437404 -0400
- git-parent:
[1585a88c144155c0ec306458bfcb001c9c6923ab]
- git-author:
- mitchell <mitchell@frost.(none)> 1212437404 -0400
- Message:
Reverted conditional in 'code' action and fixed VIM parser appropriately.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r1585a88 |
r92ced68 |
|
| 13 | 13 | #define code {\ |
|---|
| 14 | 14 | if (!line_contains_code && !line_start) line_start = ts; \ |
|---|
| 15 | | if (!whole_line_comment) line_contains_code = 1; \ |
|---|
| | 15 | line_contains_code = 1; \ |
|---|
| 16 | 16 | } |
|---|
| 17 | 17 | |
|---|
| r173cc42 |
r92ced68 |
|
| 26 | 26 | action code { |
|---|
| 27 | 27 | if (!line_contains_code && !line_start) line_start = ts; |
|---|
| 28 | | if (!whole_line_comment) line_contains_code = 1; |
|---|
| | 28 | line_contains_code = 1; |
|---|
| 29 | 29 | } |
|---|
| 30 | 30 | |
|---|
| r8941b20 |
r92ced68 |
|
| 48 | 48 | |
|---|
| 49 | 49 | vim_sq_str = '\'' @code ([^\r\n\f'\\] | '\\' any)* '\''; |
|---|
| 50 | | vim_dq_str = '"' @code ([^\r\n\f"\\] | '\\' any)* '"'; |
|---|
| | 50 | vim_dq_str = '"' when !no_code @code ([^\r\n\f"\\] | '\\' any)* '"'; |
|---|
| 51 | 51 | vim_string = vim_sq_str | vim_dq_str; |
|---|
| 52 | 52 | |
|---|
| … | … | |
| 56 | 56 | vim_string; |
|---|
| 57 | 57 | newline ${ entity = NEWLINE; } => vim_ccallback; |
|---|
| 58 | | '"'; |
|---|
| | 58 | #'"'; |
|---|
| 59 | 59 | ^(space | '"') ${ entity = VIM_ANY; } => vim_ccallback; |
|---|
| 60 | 60 | |
|---|