Sha256: 4137e104d2251a71942b66312eb30d9079719ad2b49de4aea21d4e34b1229bea
Contents?: true
Size: 970 Bytes
Versions: 13
Compression:
Stored size: 970 Bytes
Contents
# Javascript language module module Murdoc module Languages module Javascript module Annotator def self.included(base) base.extend ClassMethods end module ClassMethods protected def detect_source_type_from_filename(filename) if File.extname(filename) == ".js" :javascript else super if defined?(super) end end end end module CommentSymbols protected def comment_symbols if source_type == "javascript" {:single_line => "//", :multiline => {:begin => "/*", :end => "*/"}} else super if defined?(super) end end end end end class Annotator include Languages::Javascript::Annotator include Languages::Javascript::CommentSymbols end class Paragraph include Languages::Javascript::CommentSymbols end end
Version data entries
13 entries across 13 versions & 1 rubygems