Open ashfurrow opened 8 years ago
What's the best way to implement this? Are there any nice gems that offer similar functionality to SourceKitten, or do we want to attempt to use regexps instead?
I was thinking regular expressions, check for /*#-
and */
(or //#-\n
) and see if the middle bits match a known pattern.
Gee, soon we might have to start allowing users to opt-out of some rules 🤔 But not now, we can worry about that later 😅
Yeah at some point we'll probably want to break 'rules' out into their own discrete objects to make that stuff easier, but we'll see how far we can get before that refactor's necessary.
Specially comments to direct the user start with
//#-
, we should warn if the string following that doesn't match a known pattern.