Changeset e1d66c84


Ignore:
Timestamp:
Dec 7, 2022, 4:52:20 PM (8 weeks ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
261e107, 74227c6
Parents:
258aaab8
Message:

Clean-up from my investigation on the anonymous issue. The parser change improves highlighting.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r258aaab8 re1d66c84  
    551551
    552552%%
    553 //************************* Namespace Management ********************************
     553// ************************ Namespace Management ********************************
    554554
    555555// The C grammar is not context free because it relies on the distinct terminal symbols "identifier" and "TYPEDEFname",
     
    588588        ;
    589589
    590 //************************* CONSTANTS ********************************
     590// ************************ CONSTANTS ********************************
    591591
    592592constant:
     
    634634        ;
    635635
    636 //************************* EXPRESSIONS ********************************
     636// ************************ EXPRESSIONS ********************************
    637637
    638638primary_expression:
     
    11011101        ;
    11021102
    1103 //*************************** STATEMENTS *******************************
     1103// ************************** STATEMENTS *******************************
    11041104
    11051105statement:
     
    17581758        ;
    17591759
    1760 //******************************* DECLARATIONS *********************************
     1760// ****************************** DECLARATIONS *********************************
    17611761
    17621762declaration_list_opt:                                                                   // used at beginning of switch statement
     
    29912991        ;
    29922992
    2993 //***************************** EXTERNAL DEFINITIONS *****************************
     2993// **************************** EXTERNAL DEFINITIONS *****************************
    29942994
    29952995translation_unit:
     
    40134013//    declaration lists (not prototype-format parameter type and identifier declarators) is an obsolescent feature.
    40144014
    4015 //************************* MISCELLANEOUS ********************************
     4015// ************************ MISCELLANEOUS ********************************
    40164016
    40174017comma_opt:                                                                                              // redundant comma
  • tests/linking/mangling/header.hfa

    r258aaab8 re1d66c84  
    88extern name_but_a_typedefed_t a_typedefed_global;
    99
    10 extern struct {
     10extern struct /* anonymous */ {
    1111        int some_int;
    1212        int some_other_int;
Note: See TracChangeset for help on using the changeset viewer.