package comby
A tool for structural code search and replace that supports ~every language
Install
Dune Dependency
Authors
Maintainers
Sources
1.3.0.tar.gz
md5=617a80e8673c3f811403f09701c08a25
sha512=2f8f82c119210ae0efd7f3eefdd992d6b52655575233dfab74662d9a9854ce4aafcd4fe01dad17ba310e38f28ee1437be2f3c4af4f6952a97bb19e1400fc709a
doc/src/comby.matchers/omega_matchers.ml.html
Source file omega_matchers.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
open Core open Languages module Matcher = Omega module Text = Matcher.Make (Text) module Paren = Matcher.Make (Paren) module Dyck = Matcher.Make (Dyck) module JSON = Matcher.Make (JSON) module JSONC = Matcher.Make (JSONC) module GraphQL = Matcher.Make (GraphQL) module Dhall = Matcher.Make (Dhall) module Latex = Matcher.Make (Latex) module Assembly = Matcher.Make (Assembly) module Clojure = Matcher.Make (Clojure) module Lisp = Matcher.Make (Lisp) module Generic = Matcher.Make (Generic) module Bash = Matcher.Make (Bash) module Ruby = Matcher.Make (Ruby) module Elixir = Matcher.Make (Elixir) module Python = Matcher.Make (Python) module Html = Matcher.Make (Html) module Xml = Matcher.Make (Xml) module SQL = Matcher.Make (SQL) module Erlang = Matcher.Make (Erlang) module C = Matcher.Make (C) module Csharp = Matcher.Make (Csharp) module Java = Matcher.Make (Java) module CSS = Matcher.Make (CSS) module Kotlin = Matcher.Make (Kotlin) module Scala = Matcher.Make (Scala) module Nim = Matcher.Make (Nim) module Dart = Matcher.Make (Dart) module Php = Matcher.Make (Php) module Go = Matcher.Make (Go) module Javascript = Matcher.Make (Javascript) module Jsx = Matcher.Make (Jsx) module Typescript = Matcher.Make (Typescript) module Tsx = Matcher.Make (Tsx) module Swift = Matcher.Make (Swift) module Rust = Matcher.Make (Rust) module OCaml = Matcher.Make (OCaml) module Reason = Matcher.Make (Reason) module Fsharp = Matcher.Make (Fsharp) module Pascal = Matcher.Make (Pascal) module Julia = Matcher.Make (Julia) module Fortran = Matcher.Make (Fortran) module Haskell = Matcher.Make (Haskell) module Elm = Matcher.Make (Elm) module Zig = Matcher.Make (Zig) module Coq = Matcher.Make (Coq) module Move = Matcher.Make (Move) module Solidity = Matcher.Make (Solidity) module C_nested_comments = Matcher.Make (C_nested_comments) let all : (module Types.Matcher.S) list = [ (module Assembly) ; (module Bash) ; (module C) ; (module Csharp) ; (module CSS) ; (module Dart) ; (module Dyck) ; (module Clojure) ; (module Coq) ; (module Elm) ; (module Erlang) ; (module Elixir) ; (module Fortran) ; (module Fsharp) ; (module Go) ; (module Html) ; (module Haskell) ; (module Java) ; (module Javascript) ; (module Jsx) ; (module JSON) ; (module JSONC) ; (module GraphQL) ; (module Dhall) ; (module Julia) ; (module Kotlin) ; (module Latex) ; (module Lisp) ; (module Move) ; (module Nim) ; (module OCaml) ; (module Paren) ; (module Pascal) ; (module Php) ; (module Python) ; (module Reason) ; (module Ruby) ; (module Rust) ; (module Scala) ; (module Solidity) ; (module SQL) ; (module Swift) ; (module Text) ; (module Typescript) ; (module Tsx) ; (module Xml) ; (module Zig) ; (module Generic) ] let select_with_extension ?(metasyntax) extension : (module Types.Matcher.S) option = let _ = metasyntax in List.find all ~f:(fun (module M) -> List.exists M.extensions ~f:(String.(=) extension)) let create ?(metasyntax = Metasyntax.default_metasyntax) Types.Syntax. { user_defined_delimiters ; escapable_string_literals ; raw_string_literals ; comments } = let module Info = struct let name = "User_defined_language" let extensions = [] end in let module Syntax = struct let user_defined_delimiters = user_defined_delimiters let escapable_string_literals = escapable_string_literals let raw_string_literals = raw_string_literals let comments = comments end in let module User_language = struct module Info = Info module Syntax = Syntax end in let _ = metasyntax in (module Omega.Make (User_language) : Types.Matcher.S)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>