Blame view

bower_components/prism/tests/languages/vhdl/function_feature.test 877 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
24
25
26
27
28
29
  Bit_vector(7 downto 0)

  DataBus(7)

  function BOOL_TO_SL(X : boolean)

  function "*"(a : resistance; b : capacitance)

  

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

  

  [

  	["function", "Bit_vector"],

  	["punctuation", "("], ["number", "7"],

  	["keyword", "downto"], ["number", "0"], ["punctuation", ")"],

  

  	["function", "DataBus"],

  	["punctuation", "("], ["number", "7"], ["punctuation", ")"],

  

  	["keyword", "function"], ["function", "BOOL_TO_SL"],

  	["punctuation", "("], "X ",

  	["punctuation", ":"], " boolean", ["punctuation", ")"],

  

  	["keyword", "function"], ["quoted-function", "\"*\""],

  	["punctuation", "("], "a ",

  	["punctuation", ":"], " resistance",

  	["punctuation", ";"], " b ",

  	["punctuation", ":"], " capacitance", ["punctuation", ")"]

  ]

  

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

  

  Checks for functions and operator overloading.