nobloat@lemmy.ml to 196@lemmy.blahaj.zoneEnglish · 1 year agoRule.htmllemmy.mlimagemessage-square5fedilinkarrow-up12arrow-down10
arrow-up12arrow-down1imageRule.htmllemmy.mlnobloat@lemmy.ml to 196@lemmy.blahaj.zoneEnglish · 1 year agomessage-square5fedilink
minus-squarelseif@sopuli.xyzlinkfedilinkarrow-up0·1 year ago/^[a-zA-Z_]\w*$/ i think… most languages at least
minus-squareanton@lemmy.blahaj.zonelinkfedilinkarrow-up0·1 year agoThat’s variables and keyword. If you have a regex for a languages keywords you can substract as they are closed under that operation.
minus-squarelseif@sopuli.xyzlinkfedilinkarrow-up1·11 months agogood point. some languages (like rust) also support r# prefix to use a keyword as a variable also
/^[a-zA-Z_]\w*$/
i think… most languages at least
That’s variables and keyword.
If you have a regex for a languages keywords you can substract as they are closed under that operation.
good point. some languages (like rust) also support
r#
prefix to use a keyword as a variable also