mirror of https://github.com/Wilfred/difftastic/
73 lines
2.2 KiB
OpenEdge ABL
73 lines
2.2 KiB
OpenEdge ABL
public class Me {
|
|
// <- keyword
|
|
// ^ keyword
|
|
// ^ class
|
|
// ^ punctuation
|
|
{
|
|
// ^ punctuation
|
|
Account a = new Account(Name='Acme');
|
|
// ^ type
|
|
// ^ variable
|
|
// ^ operator
|
|
// ^ keyword
|
|
// ^ type
|
|
// ^ punctuation
|
|
// ^ variable
|
|
// ^ operator
|
|
// ^ string
|
|
// ^ punctuation
|
|
// ^ punctuation
|
|
try {
|
|
// ^ keyword
|
|
// ^ punctuation
|
|
insert a;
|
|
// ^ function.defaultLibrary
|
|
// ^ variable
|
|
// ^ punctuation
|
|
} catch(DmlException e) {
|
|
// ^ punctuation
|
|
// ^ keyword
|
|
// ^ punctuation
|
|
// ^ type
|
|
// ^ variable
|
|
// ^ punctuation
|
|
// ^ punctuation
|
|
// Process exception here
|
|
// ^^^^^^^^^^ comment
|
|
Boolean failed = true;
|
|
// ^ type
|
|
// ^ variable
|
|
// ^ operator
|
|
// ^ variable.readonly.defaultLibrary
|
|
// ^ punctuation
|
|
} catch(Exception e) {
|
|
// ^ punctuation
|
|
// ^ keyword
|
|
// ^ punctuation
|
|
// ^ type
|
|
// ^ variable
|
|
// ^ punctuation
|
|
// ^ punctuation
|
|
// Process exception here
|
|
Boolean failed = true;
|
|
// ^ type
|
|
// ^ variable
|
|
// ^ operator
|
|
// ^ variable.readonly.defaultLibrary
|
|
// ^ punctuation
|
|
} finally {
|
|
// ^ punctuation
|
|
// ^ keyword
|
|
// ^ punctuation
|
|
Boolean finallyRan = true;
|
|
// ^ type
|
|
// ^ variable
|
|
// ^ operator
|
|
// ^ variable.readonly.defaultLibrary
|
|
// ^ punctuation
|
|
}
|
|
// ^ punctuation
|
|
}
|
|
// ^ punctuation
|
|
}
|
|
// <- punctuation |