Skip to content

Commit ed2ae68

Browse files
jneenjneen
andauthored
fix style in pdf lexer (#2251)
Co-authored-by: jneen <jneen@jneen.net>
1 parent e59b3ce commit ed2ae68

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/rouge/lexers/pdf.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
# As defined by ISO 32000-2:2020 including resolved errata from https://pdf-issues.pdfa.org/
77
#
88
# The PDF syntax is also known as "COS" and can be used with FDF (Forms Data Field) files as
9-
# per ISO 32000-2:2020 clause 12.7.8.
9+
# per ISO 32000-2:2020 clause 12.7.8.
1010
#
11-
# This is a token-based parser ONLY! It is intended to syntax highlight full or partial fragments
11+
# This is a token-based parser ONLY! It is intended to syntax highlight full or partial fragments
1212
# of nicely written hand-written PDF syntax in documentation such as ISO specifications. It is NOT
1313
# intended to cope with real-world PDFs that will contain arbitrary binary data (that form invalid
14-
# UTF-8 sequences and generate "ArgumentError: invalid byte sequence in UTF-8" Ruby errors) and
15-
# other types of malformations or syntax errors.
14+
# UTF-8 sequences and generate "ArgumentError: invalid byte sequence in UTF-8" Ruby errors) and
15+
# other types of malformations or syntax errors.
1616
#
1717
# Author: Peter Wyatt, CTO, PDF Association. 2024
1818
#
@@ -86,7 +86,7 @@ def self.detect?(text)
8686
# PDF Integer object
8787
rule %r/(\-|\+)?[0-9]+/, Num::Integer
8888

89-
# A run of non-delimiters is most likely a PDF content stream
89+
# A run of non-delimiters is most likely a PDF content stream
9090
# operator (ISO 32000-2:2020, Annex A).
9191
rule %r/[^\(\)<>\[\]\/%\s]+/, Operator::Word
9292

0 commit comments

Comments
 (0)