import { CstChild } from '@jesscss/css-parser' ; import type { LessParser } from '../lessParser' ; export default function ( this , $ ) { /** "color" in "color: red" */ $ . property = $ . OVERRIDE_RULE ( 'property' , ( ) => { const children = [ ] ; /** Legacy - remove? */ $ . OPTION ( ( ) => children . push ( $ . CONSUME ( $ . T . Star ) ) ) ; $ . AT_LEAST_ONE ( ( ) => children . push ( $ . OR2 ( [ { ALT : ( ) => $ . CONSUME ( $ . T . Ident ) } , { ALT : ( ) => $ . CONSUME ( $ . T . InterpolatedIdent ) } , { ALT : ( ) => $ . CONSUME ( $ . T . Minus ) } ] ) ) ) ; return { name : 'property' , children } ; } ) ; $ . customProperty = $ . OVERRIDE_RULE ( 'customProperty' , ( ) => { const children = [ $ . CONSUME ( $ . T . CustomProperty ) ] ; $ . MANY ( ( ) => children . push ( $ . OR ( [ { ALT : ( ) => $ . CONSUME ( $ . T . Ident ) } , { ALT : ( ) => $ . CONSUME ( $ . T . InterpolatedIdent ) } , { ALT : ( ) => $ . CONSUME ( $ . T . Minus ) } ] ) ) ) ; return { name : 'property' , children } ; } ) ; }