diff --git a/LipidMaps.g4 b/LipidMaps.g4 index 2e35e868..b2eb92a2 100644 --- a/LipidMaps.g4 +++ b/LipidMaps.g4 @@ -181,7 +181,7 @@ mediator_oxo: 'Oxo' | 'oxo'; /* generic rules */ fa: fa_unmod | fa_unmod fa_mod | fa_unmod fa_mod_separator fa_mod; -fa_unmod: round_open_bracket ether fa_pure round_close_bracket | round_open_bracket fa_pure round_close_bracket | ether fa_pure | fa_pure; +fa_unmod: round_open_bracket fa_pure ether_suffix round_close_bracket | round_open_bracket ether_prefix fa_pure round_close_bracket | round_open_bracket fa_pure round_close_bracket | ether_prefix fa_pure | fa_pure ether_suffix | fa_pure; fa_mod: round_open_bracket modification round_close_bracket; modification: modification ',' modification | single_mod; single_mod : isomeric_mod | isomeric_mod square_open_bracket stereo square_close_bracket | structural_mod | structural_mod square_open_bracket stereo square_close_bracket; @@ -190,7 +190,8 @@ structural_mod : mod_text | mod_text mod_num; mod_pos : number; mod_num : number; mod_text: 'OH' | 'Ke' | 'OOH' | 'My' | 'Me' | 'Br' | 'CHO' | 'COOH' | 'Cp' | 'Ep' | 'KE' | 'NH'; -ether : 'P-' | 'O-'; +ether_prefix : 'P-' | 'O-'; +ether_suffix : 'p' | 'e'; stereo : 'R' | 'S'; fa_pure: carbon carbon_db_separator db | carbon carbon_db_separator db db_hydroxyl_separator hydroxyl; lcb_pure_fa : lcb_fa;