Source and blocks
Atom reads UTF-8 source from files ending in '.atom'. A block is the part of a function, loop, or branch that runs together.
Source files and identifiers
Start with a file such as 'hello.atom'. Names can use ASCII letters, digits, and underscores, starting with a letter or underscore.
Comments
Use '// ' for a line comment, or put a longer comment between '/' and '/'. Block comments can nest.
Indentation
After a colon, use spaces to indent the block. Align statements that belong to the same block.
Atom source uses UTF-8 and the .atom extension. Identifiers contain ASCII letters, digits and underscores, with a letter or underscore first. Blocks begin after a colon and use a consistent increase in space indentation. Tabs inside lines are permitted as horizontal whitespace. Lines can contain comments starting with //, and /* */ comments can nest.
Collection items and call arguments accept commas or line breaks. Function parameter declarations use commas. Closing delimiters can return to an earlier indentation level.
A suite begins on the line after its colon. Sibling statements have the same indentation. A dedent must match an earlier level. Blank and comment-only lines do not create suites. There is no statement separator for putting two statements on one line. In a delimited list, a final comma is allowed. Lines outside a list or multiline literal end the current statement. Keywords are case-sensitive. The keyword table lists every reserved word. Name-like keywords are accepted after a dot, while a computed literal key can express any text key.
// A one-line comment
/* A block comment
/* with a nested comment */
*/
values = [
2
4
6
]
if count(values) == 3:
print(values[1])