-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tcl lexer: no error for @ or , (#1834)
* tcl lexer: no error for @ or , * examplefiles --> snippets * rename test file to convention
- Loading branch information
Showing
2 changed files
with
132 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
---input--- | ||
# Alt and arrow keys to scroll | ||
set scroll_amount 2 | ||
bind Text <Alt-Up> { | ||
%W yview scroll -$scroll_amount units | ||
%W mark set insert @0,[expr [winfo height %W] / 2] | ||
} | ||
bind Text <Alt-Down> { | ||
%W yview scroll $scroll_amount units | ||
%W mark set insert @0,[expr [winfo height %W] / 2] | ||
} | ||
|
||
---tokens--- | ||
'#' Comment | ||
' Alt and arrow keys to scroll\n' Comment | ||
|
||
'set' Keyword | ||
' ' Text | ||
'scroll_amount' Text | ||
' ' Text | ||
'2' Literal.Number.Integer | ||
'\n' Text | ||
|
||
'bind' Name.Variable | ||
' ' Text | ||
'Text' Text | ||
' ' Text | ||
'<' Operator | ||
'Alt-Up' Text | ||
'>' Operator | ||
' ' Text | ||
'{' Keyword | ||
'\n ' Text | ||
'%' Operator | ||
'W' Name.Variable | ||
' ' Text | ||
'yview' Text | ||
' ' Text | ||
'scroll' Text | ||
' ' Text | ||
'-' Operator | ||
'$scroll_amount' Name.Variable | ||
' ' Text | ||
'units' Text | ||
'\n' Text | ||
|
||
' ' Text | ||
'%' Operator | ||
'W' Name.Variable | ||
' ' Text | ||
'mark' Text | ||
' ' Text | ||
'set' Text | ||
' ' Text | ||
'insert' Text | ||
' ' Text | ||
'@0,' Text | ||
'[' Keyword | ||
'expr' Keyword | ||
' ' Text | ||
'[' Keyword | ||
'winfo' Name.Variable | ||
' ' Text | ||
'height' Text | ||
' ' Text | ||
'%' Operator | ||
'W' Text | ||
']' Keyword | ||
' ' Text | ||
'/' Operator | ||
' ' Text | ||
'2' Literal.Number.Integer | ||
']' Keyword | ||
'\n' Text | ||
|
||
'}' Keyword | ||
'\n' Text | ||
|
||
'bind' Name.Variable | ||
' ' Text | ||
'Text' Text | ||
' ' Text | ||
'<' Operator | ||
'Alt-Down' Text | ||
'>' Operator | ||
' ' Text | ||
'{' Keyword | ||
'\n ' Text | ||
'%' Operator | ||
'W' Name.Variable | ||
' ' Text | ||
'yview' Text | ||
' ' Text | ||
'scroll' Text | ||
' ' Text | ||
'$scroll_amount' Name.Variable | ||
' ' Text | ||
'units' Text | ||
'\n' Text | ||
|
||
' ' Text | ||
'%' Operator | ||
'W' Name.Variable | ||
' ' Text | ||
'mark' Text | ||
' ' Text | ||
'set' Text | ||
' ' Text | ||
'insert' Text | ||
' ' Text | ||
'@0,' Text | ||
'[' Keyword | ||
'expr' Keyword | ||
' ' Text | ||
'[' Keyword | ||
'winfo' Name.Variable | ||
' ' Text | ||
'height' Text | ||
' ' Text | ||
'%' Operator | ||
'W' Text | ||
']' Keyword | ||
' ' Text | ||
'/' Operator | ||
' ' Text | ||
'2' Literal.Number.Integer | ||
']' Keyword | ||
'\n' Text | ||
|
||
'}' Keyword | ||
'\n' Text |