This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime | |
import sublime_plugin | |
class DoubleClickAtCaretCommand(sublime_plugin.TextCommand): | |
def run(self, edit, **kwargs): | |
view = self.view | |
cursor = view.sel()[0] | |
(rg, scope) = view.extract_tokens_with_scopes(view.line(cursor))[1] | |
if 'line-number.match.find-in-files' in scope: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Text.Megaparsec | |
import Text.Megaparsec.Char | |
import Text.Megaparsec.Char.Lexer qualified as L | |
type Parser a = Parsec Void String a | |
unsafeParse :: Parser a -> String -> a | |
unsafeParse p s = fromJust <| parseMaybe p s | |
sc :: Parser () |