Skip to content

Commit

Permalink
Fix agda support
Browse files Browse the repository at this point in the history
  • Loading branch information
flosse committed Sep 20, 2023
1 parent 63d84ba commit 2b0f18a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/sloc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ getCommentExpressions = (lang) ->
when "js", "jsx", "mjs", "c", "cc", "cpp", "cs", "cxx", "h", "m", "mm", \
"hpp", "hx", "hxx", "ino", "java", "php", "php5", "go", "groovy", \
"scss", "less", "rs", "sass", "styl", "scala", "swift", "ts", \
"jade", "pug", "gs", "nut", "kt", "kts", "tsx", "fs", "fsi", "fsx", "bsl", \
"dart", "agda"
"jade", "pug", "gs", "nut", "kt", "kts", "tsx", \
"fs", "fsi", "fsx", "bsl", "dart"
/\/{2}/

when "latex", "tex", "sty", "cls"
start = /\%/
when "lua", "hs", "sql"
when "agda", "lua", "hs", "sql"
/--/
when "erl"
/\%/
Expand Down Expand Up @@ -82,7 +82,7 @@ getCommentExpressions = (lang) ->
when "js", "jsx", "mjs", "c", "cc", "cpp", "cs", "cxx", "h", "m", "mm", \
"hpp", "hx", "hxx", "ino", "java", "ls", "nix", "php", "php5", \
"go", "css", "sass", "scss", "less", "rs", "styl", "scala", "ts", \
"gs", "groovy", "nut", "kt", "kts", "tsx", "sql", "dart", "agda"
"gs", "groovy", "nut", "kt", "kts", "tsx", "sql", "dart"
start = /\/\*+/
stop = /\*\/{1}/

Expand All @@ -93,7 +93,7 @@ getCommentExpressions = (lang) ->
start = /\{\{\!/
stop = /\}\}/

when "hs"
when "hs", "agda"
start = /\{-/
stop = /-\}/

Expand Down

0 comments on commit 2b0f18a

Please sign in to comment.