Blame view

bower_components/prism/tests/languages/javascript/function_feature.test 729 Bytes
eb240478   Luigi Serra   public room cards...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  foo()

  foo_bar()

  f42()

  _()

  $()

  ಠ_ಠ()

  Ƞȡ_҇()

  

  ----------------------------------------------------

  

  [

  	["function", "foo"], ["punctuation", "("], ["punctuation", ")"],

  	["function", "foo_bar"], ["punctuation", "("], ["punctuation", ")"],

  	["function", "f42"], ["punctuation", "("], ["punctuation", ")"],

  	["function", "_"], ["punctuation", "("], ["punctuation", ")"],

  	["function", "$"], ["punctuation", "("], ["punctuation", ")"],

  	["function", "ಠ_ಠ"], ["punctuation", "("], ["punctuation", ")"],

  	["function", "Ƞȡ_҇"], ["punctuation", "("], ["punctuation", ")"]

  ]

  

  ----------------------------------------------------

  

  Checks for functions. Also checks for unicode characters in identifiers.