]> git.ipfire.org Git - thirdparty/gcc.git/commit
cobol: Restrict CDF reserved words to CDF parsing. master trunk
authorJames K. Lowden <jklowden@cobolworx.com>
Wed, 22 Jul 2026 22:16:43 +0000 (18:16 -0400)
committerJames K. Lowden <jklowden@cobolworx.com>
Wed, 22 Jul 2026 22:22:41 +0000 (18:22 -0400)
commitf128c347d5278a521f8101a4a237493a25e6f143
treee32c9a95fba27fda435453276a8cefff21ba9764
parent70add872be783070deab8285ebb3a175d42256e3
cobol: Restrict CDF reserved words to CDF parsing.

Among others PARAMETER was captured as a reserved word during normal
parsing, which it is not.  Move that and some other obvious CDF tokens
to the cdf_state start condition.

gcc/cobol/ChangeLog:

* scan.l: Make PARAMETER and friends unspecial outside CDF.
gcc/cobol/scan.l