File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -148,9 +148,9 @@ function paren_type(k::Kind)
148148end
149149
150150mutable struct ParenDepthCounter
151- paren:: UInt
152- bracket:: UInt
153- curly:: UInt
151+ paren:: Int
152+ bracket:: Int
153+ curly:: Int
154154end
155155
156156ParenDepthCounter () =
Original file line number Diff line number Diff line change @@ -27,3 +27,8 @@ astr_sum1to8 = Base.AnnotatedString("sum(1:8)")
2727
2828# Check for string indexing issues
2929@test Base. annotations (highlight (" :π" )) |> first |> first == 1 : 3
30+
31+ # Test unpaired parentheses (issue #17)
32+ unpaired_parens = highlight (" (())))" )
33+ @test Base. annotations (unpaired_parens)[5 ]. value == :julia_unpaired_parentheses
34+ @test Base. annotations (unpaired_parens)[6 ]. value == :julia_unpaired_parentheses
You can’t perform that action at this time.
0 commit comments