Skip to content

Commit 1a466bf

Browse files
authored
Merge pull request #855 from username231419/master
Add support for Class definitions to coqtags
2 parents 8ccf1b3 + d8ed7da commit 1a466bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coq/coqtags

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ while(<>)
5959
elsif($stmt=~/^([ \t]*((Axiom)|(Hypothesis)|(Parameter)|(Variable))\s+[\w\']+)/)
6060
{ adddecs($stmt,$1); }
6161

62-
elsif($stmt=~/^([ \t]*((Definition)|(Fixpoint)|(Inductive)|(CoInductive)|(Record)|(Variant))\s+([\w\']+))/)
62+
elsif($stmt=~/^([ \t]*((Definition)|(Fixpoint)|(Inductive)|(CoInductive)|(Record|Class)|(Variant))\s+([\w\']+))/)
6363
{
6464
$tagstring.=$1."\177".$9."\001".$lp.",".$cp."\n";
6565
if($2 eq "Inductive" || $2 eq "CoInductive" || $2 eq "Variant"){
6666
add_constructors($stmt);
6767
}
68-
elsif($2 eq "Record"){
68+
elsif($2 eq "Record" || $2 eq "Class"){
6969
add_record_labels($stmt, $8);
7070
}
7171
}

0 commit comments

Comments
 (0)