Skip to content

Commit

Permalink
adding support for Eiffel programming language
Browse files Browse the repository at this point in the history
  • Loading branch information
elviejo79 committed Nov 25, 2024
1 parent 029045a commit 03e8424
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 28 deletions.
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
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

0 comments on commit 03e8424

Please sign in to comment.