File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments