Add a few comments in the compiler scanner.
This commit is contained in:
parent
968f0d943e
commit
7914f8ad9d
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue