Add a few comments in the compiler scanner.

This commit is contained in:
Martin Whitaker 2022-12-20 18:06:28 +00:00
parent 968f0d943e
commit 7914f8ad9d
1 changed files with 7 additions and 1 deletions

View File

@ -645,7 +645,7 @@ TU [munpf]
`celldefine { in_celldefine = true; }
`endcelldefine { in_celldefine = false; }
/* Notice and handle the resetall directive. */
/* Notice and handle the `resetall directive. */
`resetall {
if (in_module) {
@ -681,6 +681,8 @@ TU [munpf]
VLerror(yylloc, "error: Invalid `unconnected_drive directive.");
BEGIN(0); }
/* Notice and handle the `nounconnected_drive directive. */
`nounconnected_drive {
if (in_module) {
VLerror(yylloc, "error: `nounconnected_drive directive cannot be "
@ -710,6 +712,8 @@ TU [munpf]
^{W}?`suppress_faults{W}?.* { }
^{W}?`uselib{W}?.* { }
/* Notice and handle the `begin_keywords directive. */
`begin_keywords { BEGIN(PPBEGIN_KEYWORDS); }
<PPBEGIN_KEYWORDS>\"[a-zA-Z0-9 -\.]*\" {
@ -777,6 +781,8 @@ TU [munpf]
VLerror(yylloc, "error: Invalid `begin_keywords directive.");
BEGIN(0); }
/* Notice and handle the `end_keywords directive. */
`end_keywords {
if (!keyword_mask_stack.empty()) {
lexor_keyword_mask = keyword_mask_stack.front();