Skip to content

Commit 4251886

Browse files
committed
add Common Lisp and Emacs Lisp
1 parent 9d81e12 commit 4251886

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pkg/comments/comments.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ var HashStyleCommentOptions *lege.ParseOptions = &lege.ParseOptions{
3737
},
3838
}
3939

40+
// LispStyleCommentOptions ..
41+
var LispStyleCommentOptions *lege.ParseOptions = &lege.ParseOptions{
42+
Boundaries: []lege.Boundary{
43+
{
44+
Start: ";",
45+
End: "\n",
46+
},
47+
},
48+
}
49+
4050
// Language is a source language (i.e. "Go")
4151
type Language string
4252

@@ -57,6 +67,8 @@ var LanguageParseOptions map[Language]*lege.ParseOptions = map[Language]*lege.Pa
5767
"Objective-C": CStyleCommentOptions,
5868
"Groovy": CStyleCommentOptions,
5969
"Swift": CStyleCommentOptions,
70+
"Common Lisp": LispStyleCommentOptions,
71+
"Emacs Lisp": LispStyleCommentOptions,
6072
}
6173

6274
// Comments is a list of comments

0 commit comments

Comments
 (0)