From 81c8a2e76da2ffef6935f01a36b7323100814be8 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sat, 15 Mar 2008 12:00:02 +0100 Subject: [PATCH] 'documentation' monoglot --- ext/ohcount_native/generator.rb | 2 ++ lib/ohcount/sloc_info.rb | 1 + 2 files changed, 3 insertions(+) diff --git a/ext/ohcount_native/generator.rb b/ext/ohcount_native/generator.rb index a413b1e..ca279a8 100644 --- a/ext/ohcount_native/generator.rb +++ b/ext/ohcount_native/generator.rb @@ -32,6 +32,7 @@ module Ohcount css = CMonoglot.new("css", nil, [e('/*'), e('*/')], false, false) dcl = DclMonoglot.new("dcl") dylan = CMonoglot.new("dylan", '//', nil, true, false) + documentation = Monoglot.new("documentation", [State.new("documentation", :text, :comment)], []) erlang = CMonoglot.new("erlang", '%%', nil, true, true) java = CMonoglot.new("java", '//', [e('/*'), e('*/')], true, false) javascript = CMonoglot.new("javascript", '//', [e('/*'), e('*/')], true, true) @@ -88,6 +89,7 @@ module Ohcount css , dcl, dylan , + documentation, erlang , groovy , java , diff --git a/lib/ohcount/sloc_info.rb b/lib/ohcount/sloc_info.rb index 05d363b..7b36894 100644 --- a/lib/ohcount/sloc_info.rb +++ b/lib/ohcount/sloc_info.rb @@ -51,6 +51,7 @@ class Ohcount::SlocInfo 'css' => {:nice_name => 'CSS' , :category => 1}, 'dcl' => {:nice_name => 'DCL' , :category => 0}, 'dylan' => {:nice_name => 'Dylan' , :category => 0}, + 'documentation' => {:nice_name => 'Documentation' , :category => 1}, 'emacslisp' => {:nice_name => 'Emacs Lisp' , :category => 0}, 'erlang' => {:nice_name => 'Erlang' , :category => 0}, 'fortranfixed' => {:nice_name => 'Fortran (Fixed-format)', :category => 0}, -- 2.32.0.93.g670b81a890