Skip to content

emacstbl.pl: Add proper header and footer #107

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions misc/emacstbl.pl
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,14 @@ ($)

my($vol,$dir,$file) = File::Spec->splitpath($outfile);

print $out ";;; ${file} --- lists of NASM assembler tokens\n";
print $out ";;;\n";
print $out ";;; This file contains list of tokens from the NASM x86\n";
print $out ";;; assembler, automatically extracted from NASM ${version}.\n";
print $out ";;;\n";
print $out ";;; This file is intended to be (require)d from a `nasm-mode\'\n";
print $out ";;; major mode definition.\n";
print $out ";;; ${file} --- lists of NASM assembler tokens\n\n";
print $out ";;; Commentary:\n\n";
print $out ";; This file contains list of tokens from the NASM x86\n";
print $out ";; assembler, automatically extracted from NASM ${version}.\n";
print $out ";;\n";
print $out ";; This file is intended to be (require)d from a `nasm-mode\'\n";
print $out ";; major mode definition.\n\n";
print $out ";;; Code:\n";

foreach my $type (sort keys(%tokens)) {
print $out "\n(defconst nasm-${type}\n";
Expand All @@ -204,6 +205,9 @@ ($)
print $out " \"NASM ${version} ${type} tokens for `nasm-mode\'.\")\n";
}

print $out "\n(provide 'nasmtok)\n";
print $out ";;; nasmtok.el ends here\n";

close($out);
}

Expand Down