Warning, /frameworks/syntax-highlighting/autotests/input/highlight.elm is written in an unsupported language. File is not indexed.
0001 port module Test exposing
0002 ( (&&)
0003 , Expect(..)
0004 , Test
0005 , run
0006 )
0007
0008 {-| Module documentation
0009
0010 # Test
0011
0012 @docs Test, Expect
0013
0014
0015 # Functions
0016
0017 @docs run
0018
0019
0020 # Operator
0021
0022 @docs (&&)
0023
0024 -}
0025
0026 import Multiline as ML
0027 exposing
0028 ( Data(..)
0029 , Payload(..)
0030 , response
0031 )
0032 import Singleline as SL exposing (Dale(..), Single)
0033
0034
0035 -- test file for Elm syntax highlighting in KDE's Kate
0036 -- this is a single-line comment
0037 {-
0038 this is a multi-line comment
0039 -}
0040
0041
0042
0043 infix left 0 (|>) = apR
0044 infix right 3 (&&) = and
0045 infix non 4 (>=) = ge
0046
0047
0048 type T
0049 = T
0050 | A
0051 | G
0052 | C
0053
0054
0055 type alias Alt =
0056 T
0057
0058
0059 operator : Int -> Int -> Int
0060 operator =
0061 (+)
0062
0063
0064 conditional : number -> number -> Maybe number
0065 conditional a b =
0066 if b == 0 then
0067 Nothing
0068
0069 else if a == 0 then
0070 Just 0
0071
0072 else
0073 Just (a / b)
0074
0075
0076 lambda = Int -> Int
0077 lambda a =
0078 (\a -> a + 35)
0079
0080
0081
0082 {-| Documentation comment
0083
0084 Should be same as comment
0085
0086 -}
0087 caseStatement : Maybe number -> number -> number
0088 caseStatement a b =
0089 case a of
0090 Just a_ ->
0091 a_
0092
0093 _ ->
0094 b
0095
0096
0097 record : { float : Float, int : Int }
0098 record =
0099 { float = 1.455321, int = 83 }
0100
0101
0102 tuple : ( Float, Float )
0103 tuple =
0104 ( 3.14, 9.553 )
0105
0106
0107 port portTest : () -> Cmd msg