mirror of
https://github.com/github/semantic.git
synced 2024-12-29 18:06:14 +03:00
Add languages/ruby
This commit is contained in:
parent
3e8bbcb504
commit
02ba82d19d
2
languages/ruby/Setup.hs
Normal file
2
languages/ruby/Setup.hs
Normal file
@ -0,0 +1,2 @@
|
||||
import Distribution.Simple
|
||||
main = defaultMain
|
24
languages/ruby/ruby.cabal
Normal file
24
languages/ruby/ruby.cabal
Normal file
@ -0,0 +1,24 @@
|
||||
name: ruby
|
||||
version: 0.1.0
|
||||
synopsis: tree-sitter ruby language bindings
|
||||
description: Please see README.md
|
||||
homepage: https://github.com/github/semantic-diff#readme
|
||||
author: semantic-code
|
||||
maintainer: tclem@github.com
|
||||
copyright: 2017 GitHub
|
||||
category: Web
|
||||
build-type: Simple
|
||||
-- extra-source-files:
|
||||
cabal-version: >=1.10
|
||||
|
||||
library
|
||||
hs-source-dirs: src
|
||||
exposed-modules: Text.Parser.TreeSitter.Ruby
|
||||
build-depends: base >= 4.7 && < 5
|
||||
, haskell-tree-sitter
|
||||
default-language: Haskell2010
|
||||
c-sources: vendor/tree-sitter-ruby/src/parser.c
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: https://github.com/github/semantic-diff
|
6
languages/ruby/src/Text/Parser/TreeSitter/Ruby.hs
Normal file
6
languages/ruby/src/Text/Parser/TreeSitter/Ruby.hs
Normal file
@ -0,0 +1,6 @@
|
||||
module Text.Parser.TreeSitter.Ruby where
|
||||
|
||||
import Text.Parser.TreeSitter
|
||||
import Foreign.Ptr
|
||||
|
||||
foreign import ccall "vendor/tree-sitter-ruby/src/parser.c ts_language_ruby" ts_language_ruby :: Ptr Language
|
1
languages/ruby/vendor/tree-sitter-ruby
vendored
Submodule
1
languages/ruby/vendor/tree-sitter-ruby
vendored
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 95e3f84750fb6e8943d97518d5b9fa9cbdb4aa8b
|
Loading…
Reference in New Issue
Block a user