Skip to content

Commit feb0b36

Browse files
committed
fix number default capture
1 parent 82e052f commit feb0b36

File tree

4 files changed

+18
-4
lines changed

4 files changed

+18
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sourcebot/codemirror-lang-tcl",
3-
"version": "1.0.11",
3+
"version": "1.0.12",
44
"description": "CodeMirror 6 language extension for Tcl",
55
"type": "module",
66
"main": "dist/index.js",

src/syntax.grammar

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ CommandSub {
376376
openKeyword, closeKeyword, readKeyword, writeKeyword, getsKeyword, flushKeyword, seekKeyword, tellKeyword, eofKeyword, fconfigureKeyword, encodingKeyword, binaryKeyword,
377377
afterKeyword, updateKeyword, vwaitKeyword, traceKeyword,
378378
eqKeyword, neKeyword, ltKeyword, gtKeyword, leKeyword, geKeyword,
379-
word, Number, SimpleWord
379+
Number, word, SimpleWord
380380
}
381381
}
382382

src/syntax.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/number-default.tcl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
proc check_connection_status {server endpoint handler {timeout 30}} {
2+
if {[catch {set connection [socket $server $endpoint]} errorMsg] == 1} {
3+
puts "connection failed: '$errorMsg'"
4+
{*}$handler 0
5+
return
6+
}
7+
8+
fconfigure $connection -buffering none \
9+
-translation binary \
10+
-encoding binary
11+
12+
set timeoutId [after [expr {$timeout * 1000}] [list connection_handler "" $connection 0 $handler]]
13+
fileevent $connection readable [list connection_handler $timeoutId $connection 1 $handler]
14+
}

0 commit comments

Comments
 (0)