Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (12 sloc) 1.56 KB
--langdef=scala
--langmap=scala:.scala
--regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy|override)[ \t]*)*((private|protected)[ \t]*(\[[^\]]+\])?)?[ \t]*((abstract|final|sealed|implicit|lazy)[ \t]*)*class[ \t]+([a-zA-Z0-9_]+)/\8/c,classes/
--regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy|override)[ \t]*)*((private|protected)[ \t]*(\[[^\]]+\])?)?[ \t]*((abstract|final|sealed|implicit|lazy)[ \t]*)*case class[ \t]+([a-zA-Z0-9_]+)/\8/c,case classes/
--regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy|override)[ \t]*)*((private|protected)[ \t]*(\[[^\]]+\])?)?[ \t]*((abstract|final|sealed|implicit|lazy)[ \t]*)*trait[ \t]+([a-zA-Z0-9_]+)/\8/t,traits/
--regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy|override)[ \t]*)*((private|protected)[ \t]*(\[[^\]]+\])?)?[ \t]*((abstract|final|sealed|implicit|lazy)[ \t]*)*object[ \t]+([a-zA-Z0-9_]+)/\8/c,objects/
--regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy|override)[ \t]*)*((private|protected)[ \t]*(\[[^\]]+\])?)?[ \t]*((abstract|final|sealed|implicit|lazy)[ \t]*)*case object[ \t]+([a-zA-Z0-9_]+)/\8/c,case objects/
--regex-scala=/^[ \t]*type[ \t]+([a-zA-Z0-9_]+)/\1/T,types/
--regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy|override)[ \t]*)*def[ \t]+([a-zA-Z0-9_]+)/\3/m,methods/
--regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy|override)[ \t]*)*val[ \t]+([a-zA-Z0-9_]+)/\3/l,constants/
--regex-scala=/^[ \t]*((abstract|final|sealed|implicit|lazy|override)[ \t]*)*var[ \t]+([a-zA-Z0-9_]+)/\3/l,variables/
--regex-scala=/^[ \t]*package[ \t]+([a-zA-Z0-9_.]+)/\1/p,packages/