Skip to content

Commit

Permalink
Add declare statement with defined symbols
Browse files Browse the repository at this point in the history
Adding this declare will make IDE's like Cursive able to index and auto-complete on the variables provided by csk.
  • Loading branch information
wilkerlucio authored and qerub committed Apr 7, 2019
1 parent fcf0981 commit 13dda80
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/camel_snake_kebab/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,39 @@
:cljs [camel-snake-kebab.internals.alter-name])) ;; Needed for expansion of defconversion
#?(:cljs (:require-macros [camel-snake-kebab.internals.macros :refer [defconversion]])))

(declare
->PascalCase
->Camel_Snake_Case
->camelCase
->SCREAMING_SNAKE_CASE
->snake_case
->kebab-case
->HTTP-Header-Case

->PascalCaseKeyword
->camelCaseKeyword
->SCREAMING_SNAKE_CASE_KEYWORD
->snake_case_keyword
->kebab-case-keyword
->Camel_Snake_Case_Keyword
->HTTP-Header-Case-Keyword

->PascalCaseString
->camelCaseString
->SCREAMING_SNAKE_CASE_STRING
->snake_case_string
->kebab-case-string
->Camel_Snake_Case_String
->HTTP-Header-Case-String

->PascalCaseSymbol
->camelCaseSymbol
->SCREAMING_SNAKE_CASE_SYMBOL
->snake_case_symbol
->kebab-case-symbol
->Camel_Snake_Case_Symbol
->HTTP-Header-Case-Symbol)

(defn convert-case
"Converts the case of a string according to the rule for the first
word, remaining words, and the separator."
Expand Down

0 comments on commit 13dda80

Please sign in to comment.