Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support dictionary indexers on nested properties in F# lexer #1482

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/rouge/lexers/fsharp.rb
Expand Up @@ -113,6 +113,7 @@ def self.primitives
rule %r/#{upper_id}(?=\s*[.])/, Name::Namespace
rule upper_id, Name::Class, :pop!
rule id, Name, :pop!
rule %r/\[/, Punctuation, :pop!
end
end
end
Expand Down
6 changes: 6 additions & 0 deletions spec/visual/samples/fsharp
Expand Up @@ -198,3 +198,9 @@ finally
traceEndBuild()
if !TargetHelper.ExitCode.exitCode <> 0 then exit !TargetHelper.ExitCode.exitCode
if Environment.ExitCode <> 0 then exit Environment.ExitCode

let value = array.[0]
let value = dict.Test.["key"]

// syntax highlighting
let number = 123