Skip to content
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

Support for Eiffel programming language #1201

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 4 additions & 0 deletions languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,10 @@
"line_comment": [";"],
"extensions": ["edn"]
},
"Eiffel": {
"line_comment": ["-- "],
"extensions": ["e"]
},
"Eighth": {
"name": "8th",
"line_comment": ["\\\\ ", "-- "],
Expand Down
47 changes: 19 additions & 28 deletions tests/data/asn1.asn1
Original file line number Diff line number Diff line change
@@ -1,34 +1,25 @@
-- 34 lines 16 code 11 comments 7 blanks
PKCS-12 {
iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-12(12)
modules(0) pkcs-12(1) }
-- 25 lines 16 code 3 comments 6 blanks
note
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes a file instead of adding a new one.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about that.
I have restored the original file.
and appended the new one: Eiffel.e

description: "eiffel_tokei application root class"
date: "$Date$"
revision: "$Revision$"

-- PKCS #12 v1.1 ASN.1 Module
-- Revised October 27, 2012
class
APPLICATION

-- This module has been checked for conformance with the ASN.1 standard
-- by the OSS ASN.1 Tools
inherit
ARGUMENTS_32

DEFINITIONS IMPLICIT TAGS ::=
create
make

BEGIN
feature {NONE} -- Initialization

PFX ::= SEQUENCE {
version INTEGER {v3(3)}(v3,...),
authSafe OCTET STRING,
macData MacData /* " " */ OPTIONAL
}
make
-- Run application.
do
--| Add your code here
print ("Hello Eiffel World!%N")
end

/*
* Multi line
*
*/

MacData ::= SEQUENCE {
mac OBJECT IDENTIFIER,
macSalt OCTET STRING,
iterations INTEGER DEFAULT 1
-- Note: The default is for historical reasons and its use is
-- deprecated.
}
END
end
Loading