Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Tan Le <[email protected]>
  • Loading branch information
bartbroere and tancnle authored Sep 27, 2024
1 parent 416a853 commit 8ca12ea
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions lib/rouge/lexers/cobol.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,17 @@ class COBOL < RegexLexer
]

# COBOL divisions and sections
DIVISIONS = %w[
IDENTIFICATION ENVIRONMENT DATA PROCEDURE DIVISION
]
def divisions
@divisions ||= %w(
IDENTIFICATION ENVIRONMENT DATA PROCEDURE DIVISION
)
end

SECTIONS = %w[
CONFIGURATION INPUT-OUTPUT FILE WORKING-STORAGE LOCAL-STORAGE LINKAGE SECTION
]
def sections
@sections ||= %w(
CONFIGURATION INPUT-OUTPUT FILE WORKING-STORAGE LOCAL-STORAGE LINKAGE SECTION
)
end

state :root do
# First detect the comments
Expand Down

0 comments on commit 8ca12ea

Please sign in to comment.