This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/examplefiles/arduino/Blink.ino.output
Matthäus G. Chajdas a537d5e966 Use the correct whitespace token for the C family.
The CFamilyLexer was matching whitespace as Text instead of Whitespace.
2021-06-20 11:42:04 +02:00

108 lines
2.9 KiB
Text
Generated

'/*\n Blink\n Turns on an LED on for one second, then off for one second, repeatedly.\n \n This example code is in the public domain.\n */' Comment.Multiline
'\n' Text.Whitespace
' ' Text.Whitespace
'\n' Text.Whitespace
'// Pin 13 has an LED connected on most Arduino boards.\n' Comment.Single
'// give it a name:\n' Comment.Single
'int' Keyword.Reserved
' ' Text.Whitespace
'led' Name
' ' Text.Whitespace
'=' Operator
' ' Text.Whitespace
'13' Literal.Number.Integer
';' Punctuation
'\n' Text.Whitespace
'\n' Text.Whitespace
'// the setup routine runs once when you press reset:\n' Comment.Single
'void' Keyword.Reserved
' ' Text.Whitespace
'setup' Name.Builtin
'(' Punctuation
')' Punctuation
' ' Text.Whitespace
'{' Punctuation
'\n' Text.Whitespace
' ' Text.Whitespace
'// initialize the digital pin as an output.\n' Comment.Single
' ' Text.Whitespace
'pinMode' Name.Function
'(' Punctuation
'led' Name
',' Punctuation
' ' Text.Whitespace
'OUTPUT' Keyword.Reserved
')' Punctuation
';' Punctuation
' ' Text.Whitespace
'\n' Text.Whitespace
'}' Punctuation
'\n' Text.Whitespace
'\n' Text.Whitespace
'// the loop routine runs over and over again forever:\n' Comment.Single
'void' Keyword.Reserved
' ' Text.Whitespace
'loop' Name.Builtin
'(' Punctuation
')' Punctuation
' ' Text.Whitespace
'{' Punctuation
'\n' Text.Whitespace
' ' Text.Whitespace
'digitalWrite' Name.Function
'(' Punctuation
'led' Name
',' Punctuation
' ' Text.Whitespace
'HIGH' Keyword.Reserved
')' Punctuation
';' Punctuation
' ' Text.Whitespace
'// turn the LED on (HIGH is the voltage level)\n' Comment.Single
' ' Text.Whitespace
'delay' Name.Function
'(' Punctuation
'1000' Literal.Number.Integer
')' Punctuation
';' Punctuation
' ' Text.Whitespace
'// wait for a second\n' Comment.Single
' ' Text.Whitespace
'digitalWrite' Name.Function
'(' Punctuation
'led' Name
',' Punctuation
' ' Text.Whitespace
'LOW' Keyword.Reserved
')' Punctuation
';' Punctuation
' ' Text.Whitespace
'// turn the LED off by making the voltage LOW\n' Comment.Single
' ' Text.Whitespace
'delay' Name.Function
'(' Punctuation
'1000' Literal.Number.Integer
')' Punctuation
';' Punctuation
' ' Text.Whitespace
'// wait for a second\n' Comment.Single
'}' Punctuation
'\n' Text.Whitespace